This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@nitra/checkenv

1.0.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 Dependabot 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @nitra/checkenv

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

70.5 kB

Total Files

7

Last publish

Collaborators

  • vitaliytv