Skip to content

Commit

Permalink
Merge pull request #441 from motdotla/clarify-path-as-a-file
Browse files Browse the repository at this point in the history
README: clarify that path is to a filename and not a folder
  • Loading branch information
motdotla authored Dec 6, 2019
2 parents 70425a9 + 501aba7 commit e874410
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ $ node -r dotenv/config your_script.js
The configuration options below are supported as command line arguments in the format `dotenv_config_<option>=value`

```bash
$ node -r dotenv/config your_script.js dotenv_config_path=/custom/path/to/your/env/vars
$ node -r dotenv/config your_script.js dotenv_config_path=/custom/path/to/.env
```

Additionally, you can use environment variables to set configuration options. Command line arguments will precede these.
Expand Down Expand Up @@ -102,7 +102,7 @@ Default: `path.resolve(process.cwd(), '.env')`
You may specify a custom path if your file containing environment variables is located elsewhere.

```js
require('dotenv').config({ path: '/full/custom/path/to/your/env/vars' })
require('dotenv').config({ path: '/custom/path/to/.env' })
```

#### Encoding
Expand Down

0 comments on commit e874410

Please sign in to comment.