envalidation

2.0.2 • Public • Published

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.

Package Sidebar

Install

npm i envalidation

Weekly Downloads

1

Version

2.0.2

License

ISC

Unpacked Size

2.05 kB

Total Files

3

Last publish

Collaborators

  • sevbesau