From 6df92846fd29d6136614badb0f97d391664233c0 Mon Sep 17 00:00:00 2001 From: Jonathan Raoult <2046871+jraoult@users.noreply.github.com> Date: Fri, 23 Feb 2024 17:20:20 +0000 Subject: [PATCH] Add support for `example` option passed through env variable --- config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config.js b/config.js index 849330e..edc2b57 100644 --- a/config.js +++ b/config.js @@ -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) {