Skip to content

Commit

Permalink
Merge branch 'release/2.7.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
keithmorris committed Dec 30, 2019
2 parents 5eb5058 + 96c2f78 commit 37128eb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 2.7.1 - 2019.12.30
- Update README to include `import` syntax

## 2.7.0 - 2019.12.13
- fix: check for extra keys needs to be specific to schema

## 2.5.0 - 2019.10.27
- Update dependencies and remove useless dependencies (thanks @webdevium)
- Modernize and streamline build process
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ As early as possible in your main script:
require('dotenv-extended').load();
```

Or if you prefer import syntax:

```
import dotEnvExtended from 'dotenv-extended';
dotEnvExtended.load();
```

Create a `.env` file in the root directory of your project. Add environment-specific variables on new lines in the form of `NAME=VALUE`.

For example:
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dotenv-extended",
"version": "2.7.0",
"version": "2.7.1",
"description": "A module for loading .env files and optionally loading defaults and a schema for validating all values are present.",
"repository": "[email protected]:keithmorris/node-dotenv-extended.git",
"main": "lib/index.js",
Expand Down

0 comments on commit 37128eb

Please sign in to comment.