Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

now-env

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

now-env

Use now.sh environment variables in development

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
77
decreased by-54.71%
Maintainers
1
Weekly downloads
 
Created
Source

now-env

Module to load environment variables defined in a now.json file or the now key in the package.json and set them in process.env.

Usage

Download it from npm

yarn add now-env
npm i now-env

Then require it and call the method config.

require('now-env').config()

You can now check in process.env for you environment variables.

This module check if you are running in production mode and if so don't do anything. That check only work if you run your script with NODE_ENV=production node index.js.

Because now.sh automatically run your app with the now.json environment variables then this module it's not going to do anything in production :)

FAQs

Package last updated on 31 May 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc