inxilpro / node-checkenv

Check your current environmental variables against a project config file
46 stars 6 forks source link

Add bin file so we can check via npm script #9

Open zhaoyao91 opened 7 years ago

zhaoyao91 commented 7 years ago

see another project https://www.npmjs.com/package/check-env

it support a useful usage:

{
  "prestart": "check-env AWS_KEY MONGO_URL",
  "start": "node index.js"
}

this way we can extract out the logic from the main app