It's a project intended to verify if all environment variables previously wrote in the recipe are already set in process.env
.
Node 6.4.0+
npm install checkdotenv --save
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();
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');
npm run test