Skip to content

gabemeola/get-nodeenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get-nodeenv

Gets process.env.NODE_ENV. Can set a default.

Install

$ yarn add get-nodeenv

Usage

import getNodeEnv from 'get-nodeenv';


getNodeEnv() // Defaults to "production"
getNodeEnv('development') // Set process.env.NODE_ENV to "development" if unset

About

Gets process.env.NODE_ENV. Can set a default

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published