Skip to content

Commit

Permalink
Add support for example option passed through env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jraoult committed Feb 23, 2024
1 parent 641f4e4 commit 6df9284
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
(function () {
var options = {};

if (process.env.DOTENV_CONFIG_EXAMPLE != null) {
options.example = process.env.DOTENV_CONFIG_EXAMPLE;
}

process.argv.forEach(function (val) {
var matches = val.match(/^dotenv_config_(.+)=(.+)/);
if (matches) {
Expand Down

0 comments on commit 6df9284

Please sign in to comment.