2.0.2 • Published 8 years ago
checkdotenv v2.0.2
checkdotenv
It's a project intended to verify if all environment variables previously wrote in the recipe are already set in process.env.
Dependencies
Node 6.4.0+Install
npm install checkdotenv --saveUsage
First, define a file .env.example in your project root and then put the line below in top the entry file of your application.
require('checkdotenv').check();Options
By default checkdotenv will looking for a recipe called .env.example but check method may receive a parameter to change that filename.
require('checkdotenv').check('yourfilename');Test
npm run test