0.0.1 • Published 8 years ago
seal-setenv v0.0.1
seal-setenv
Easily setting environment variables without the need to acces process.env
Installation
$ npm install seal-setenvQuick start
First you need to add a reference to seal-setenv within your application.
const setenv = require('seal-setenv');Setting a variables
Call the function to set a new environment variable or overwrite an existing one.
setenv (key, value)keymandatory string with name of the environment variablevaluevalue to set. Allowed data types arestring,object,number,boolean. For all non string types their string representation is used. Objects are converted into JSON format.
Result value is true on success, false otherwise.
Example:
setenv('MYKEY', 'my value');Running the build
To build this module use roboter.
$ bot0.0.1
8 years ago