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

@seed-media/env

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@seed-media/env

## Usage

latest
Source
npmnpm
Version
2.2.1
Version published
Maintainers
2
Created
Source

Environment Loader/Reader

Usage

const env = require('@seed-media/env')

// Getting variables
const databaseHost = env.get('DB_HOST')

// Getting variables with a default
const endpoint = env.get('ENDPOINT', 'https://localhost')

// Setting variables
env.set('MY_ENV_VAR', 'value')

## Notes

Truthy or falsey envrionment variables are converted to boolean values. For example

FOO=true // bool true
FOO=1 // bool true
FOO=false // bool false
FOO=0 // bool false

FAQs

Package last updated on 08 Sep 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