node-envchecker
v1.0.8
Published
The npm module to check required environment variables but which is lost.
Readme
node-envchecker
The npm module to check required environment variables but which is lost.
Installation
$ npm install node-envchecker --saveExample
const envChecker = require('node-envchecker')
// Set up your required variables
const variables = ['token', 'password', 'db']
// Use it!
try {
envChecker(variables)
} catch (error) {
// If something has been lost, they will be show up here.
console.error(error)
}
Test
$ npm run testIt will be show Looks good!, If success.
