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

@idagio/assert-env

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@idagio/assert-env

Utility function for asserting node-env variables have a non null value before server startup

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

@IDAGIO/assert-env

Utility function for asserting node-env variables have a non null value before server startup

Works as a compliment to node-assert-env which only asserts the presence of keys and that the keys have been assigned. This library asserts presence, non null values and non empty string values.

See Also

Our cookie management module is available as: @IDAGIO/cookie-middleware

Our session management module is available as: @IDAGIO/session-middleware

Usage

Call this module before before starting up your server. If the assertions fail, the node process will exit and print what values are missing.

require('@idagio/assert-env')([
  'KEY1',
  'KEY2',
  'KEY3'
]);

// Start your server here

Keywords

assert

FAQs

Package last updated on 05 Jul 2016

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