Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
motdotla committed Jun 16, 2023
1 parent 431521d commit ea8db8c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@ Specify an object to write your secrets to. Defaults to `process.env` environmen
const myObject = {}
require('dotenv').config({ processEnv: myObject })

// myObject will receive the values from your .env file rather than process.env
console.log(myObject) // values from .env or .env.vault live here now.
console.log(process.env) // this was not changed or written to
```

### Parse
Expand All @@ -351,7 +352,7 @@ console.log(typeof config, config) // object { BASIC : 'basic' }

#### Options

##### Debug
##### debug

Default: `false`

Expand Down Expand Up @@ -392,15 +393,15 @@ dotenv.populate(target, parsed, { override: true, debug: true })
console.log(target) // { HELLO: 'universe' }
```

#### Options
#### options

##### Debug

Default: `false`

Turn on logging to help debug why certain keys or values are not being populated as you expect.

##### Override
##### override

Default: `false`

Expand Down

0 comments on commit ea8db8c

Please sign in to comment.