New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

required_env

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

required_env

Corrall your environment variables, but only a little bit. Don't fence me in.

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
344
78.24%
Maintainers
1
Weekly downloads
 
Created
Source

This is a way to ensure any required environment variables are set. You can also specify defaults.

Installation:

npm install required_env

Example:

var required = require('required_env');

required([
  'SOMETHING_SECRET',
  {
    var: 'DATABASE_LOCATION',
    default: 'LOCALHOST'
  }
]);

Keywords

environment

FAQs

Package last updated on 15 Aug 2017

Did you know?

Socket

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