Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

with-env

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

with-env

Read and apply .env file if exists in the working directory

Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
130
94.03%
Maintainers
1
Weekly downloads
 
Created
Source

with-env

Read and apply .env file (if exists) in the working directory.

Install

$ npm install with-env

Usage

Create an .env file:

PORT=8080
AWS_KEY=abcde
DB=user@foobar.com/corge

And call with-env on top of your module:

require('with-env')()

console.log(process.env.AWS_KEY)
// => 'abcde'

Keywords

env

FAQs

Package last updated on 03 May 2014

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