Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gabemeola/get-nodeenv
- Owner: gabemeola
- License: mit
- Created: 2019-12-02T17:27:59.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-02T18:20:24.000Z (almost 5 years ago)
- Last Synced: 2024-10-15T04:33:08.827Z (about 1 month ago)
- Topics: node-env
- Language: JavaScript
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```