Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

@zaneray/node-env

Package Overview
Dependencies
Maintainers
14
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zaneray/node-env

functions for interacting with the node 'environment'

latest
npmnpm
Version
1.2.1
Version published
Maintainers
14
Created
Source

ZaneRay Node Env

  • fast-fail wrapper for environment variables
  • uses Assertions internally, throws AssertionError if no valid value defined

Usage

const { get } = require('@zaneray/node-env');

//let environmentVariableValue = get(environmentVariableName);

let REQUIRED_VAR = get('REQUIRED_VAR');
let OPTIONAL_VAR = get('OPTIONAL_VAR','optional value to set');

See test/test.js for test cases

FAQs

Package last updated on 06 Jan 2025

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