Skip to content

Commit 26269bc

Browse files
authored
Merge pull request #134 from jraoult/env-config-for-example
Add support for `example` option passed through env variable
2 parents 641f4e4 + 6df9284 commit 26269bc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
(function () {
22
var options = {};
3+
4+
if (process.env.DOTENV_CONFIG_EXAMPLE != null) {
5+
options.example = process.env.DOTENV_CONFIG_EXAMPLE;
6+
}
7+
38
process.argv.forEach(function (val) {
49
var matches = val.match(/^dotenv_config_(.+)=(.+)/);
510
if (matches) {

0 commit comments

Comments
 (0)