Skip to content

maxchou415/node-envchecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

node-envchecker

The npm module to check required environment variables but which is lost.

Installation

$ npm install node-envchecker --save

Example

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 test

It will be show Looks good!, If success.

About

πŸ™ˆ The npm module to check required environment variables but which is lost.

Resources

License

Stars

Watchers

Forks

Packages

No packages published