node-envify

1.0.1 • Public • Published

envify

Bind configuration to process.env for easy manipulation of modules that use process.env for configuration. Simplifies or execution line in automated builds.

This simple package is built on top of the work of https://www.npmjs.org/package/config. Please refer to config's documentation for use.

npm install node-envify

Envify will bind all first level basic types to process.env

{ var1: "name" // works and is bound to process.env.var1 var2: { name: 'beep'} // does not work as process.env automatically coerces to string, var3: 12 // works and is bound to process.env.var3 however it is now a string }

This is great for modules and codebases that depend on process.env for configuration, however you dont want to clutter up your shell execution line, or your code by copying config variables into process.env;

Readme

Keywords

none

Package Sidebar

Install

npm i node-envify

Weekly Downloads

1

Version

1.0.1

License

MIT License

Last publish

Collaborators

  • mhernandez