Skip to content

Commit

Permalink
doc: update readme with the systemVar options
Browse files Browse the repository at this point in the history
  • Loading branch information
Platane committed Mar 24, 2019
1 parent 79ea5d6 commit 615444b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,22 @@ To replace with env value without `process && process.env && process.env.MY_VARI
}
```

The plugin support 3 mode to read the env var from the system :

```js
{
"plugins": [["inline-dotenv",{
systemVar: 'all' | 'overwrite' | 'disable'
}]]
}
```

- `all` _default_, every env var found in process.env will be used
> ⚠️ This could leak super secret stuffs !
- `overwrite`, the value in process.env will overwrite the one present in .env only. Your .env file act as a whitelist

- `disable`, the process.env will not be used at all

### Via CLI

Expand Down

0 comments on commit 615444b

Please sign in to comment.