Socket
Book a DemoInstallSign 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

2.2.1
latest
Source
npmnpm
Version published
Weekly downloads
5
Maintainers
2
Weekly downloads
 
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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.