3.1.0 • Published 4 months ago

@nitra/check-env v3.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

check-env

Check that the critical environment variables are set for your app, and that you did not leave dangerous development overrides in production.

NPM MIT License Continuous Integration Coverage Status

Installation

yarn add @nitra/check-env

Usage

import checkEnv from '@nitra/check-env'

checkEnv(
  // Will log an error and throw if any of these are missing:
  [
    'SOME_API_SECRET',
    'PRIVATE_TOKEN',
    'SOME_OTHER_IMPORTANT_THING'
    // ...
  ]
)

If some required environment variable are not set, it will tell you and throw an error at the end: "CLI output"

License

MIT - Made with ❤️ by François Best

Using this package at work ? Sponsor me to help with support and maintenance.