Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gabemeola/get-nodeenv

Gets process.env.NODE_ENV. Can set a default
https://github.com/gabemeola/get-nodeenv

node-env

Last synced: about 6 hours ago
JSON representation

Gets process.env.NODE_ENV. Can set a default

Awesome Lists containing this project

README

        

# get-nodeenv

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

## Install

```sh
$ yarn add get-nodeenv
```

## Usage

```js
import getNodeEnv from 'get-nodeenv';

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