diff --git a/config.js b/config.js new file mode 100644 index 0000000..3d6b469 --- /dev/null +++ b/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('./')(options); +})() \ No newline at end of file