@nitra/check-env
TypeScript icon, indicating that this package has built-in type declarations

3.2.0 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @nitra/check-env

      Weekly Downloads

      208

      Version

      3.2.0

      License

      MIT

      Unpacked Size

      5.22 kB

      Total Files

      5

      Last publish

      Collaborators

      • vitaliytv