launchcodedev / app-config

Easy Configuration Loader with Strict Validation
https://app-config.dev
Mozilla Public License 2.0
69 stars 11 forks source link

Create a "preload" Node.js register script that does loadConfig #152

Open joelgallant opened 3 years ago

joelgallant commented 3 years ago

Allow the user to do node -r @app-config/register foo.js where foo.js consumes app-config without loading first. Libraries like dotenv do this.

joelgallant commented 3 years ago

https://github.com/nodejs/node/issues/40110