Socket
Socket
Sign inDemoInstall

env-var-checker

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    env-var-checker

Check if required env variables are set


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

env-var-checker (WIP)

NPM version NPM downloads NPM license All Contributors Codecov Travis Bundle size

About ℹ️

Check if required env variables are set

Alternatives

How to Install 💾

First, install the library in your project by npm:

$ npm install env-var-checker

Or Yarn:

$ yarn add env-var-checker

Getting Started 🏁

Function

Connect libary to project:

import { envVarChecker } from 'env-var-checker';

Next use library:

envVarChecker(['MY_ENV_1', 'MY_ENV_2' /* , more env variables */]);
Example
if (envVarChecker(['MY_ENV_1'])) {
  console.log(`MY_ENV_1 is ${process.env.MY_ENV_1}`);
}

CLI

$ env-var-checker [variables...]

variables must be separated by spaces

Instead of env-var-checker you can use aliases: env-checker, check-env & evc

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Jakub Biesiada

💻 ⚠️ 📖

This project follows the all-contributors specification. Contributions of any kind welcome!

License 🔱

This project is licensed under the MIT License © 2020-present Jakub Biesiada

Keywords

FAQs

Last updated on 11 Jun 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc