envalidation
v2.0.2
Published
Script for validating plain js env files and keeping the expected keys up to date
Downloads
2
Maintainers
Readme
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.