2.0.2 • Published 3 years ago

envalidation v2.0.2

Weekly downloads
4
License
ISC
Repository
github
Last release
3 years ago

Envalidation

Use this package to keep your plain js env files up to date!

Create an env file that looks like this:

const env = {
  // key value pairs 
};

require('envalidation')(env);

module.exports = env;

The script then creates env-expected.js in the project root. This file will keep track of all the expected keys in our env, so add all expected keys here! Since this file does not contain any sensitive data it can be pushed to github to keep everything synchronised.