aboutsummaryrefslogtreecommitdiff
path: root/deps/node/deps/npm/node_modules/dotenv/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/node/deps/npm/node_modules/dotenv/config.js')
-rw-r--r--deps/node/deps/npm/node_modules/dotenv/config.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/deps/node/deps/npm/node_modules/dotenv/config.js b/deps/node/deps/npm/node_modules/dotenv/config.js
new file mode 100644
index 00000000..86d6fa5f
--- /dev/null
+++ b/deps/node/deps/npm/node_modules/dotenv/config.js
@@ -0,0 +1,11 @@
+(function () {
+ var options = {}
+ process.argv.forEach(function (val, idx, arr) {
+ var matches = val.match(/^dotenv_config_(.+)=(.+)/)
+ if (matches) {
+ options[matches[1]] = matches[2]
+ }
+ })
+
+ require('./lib/main').config(options)
+})()