Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aleclarson/is-node-env
Know when your code is running in a NodeJS environment.
https://github.com/aleclarson/is-node-env
Last synced: 19 days ago
JSON representation
Know when your code is running in a NodeJS environment.
- Host: GitHub
- URL: https://github.com/aleclarson/is-node-env
- Owner: aleclarson
- License: mit
- Created: 2015-07-13T21:26:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-05T16:51:08.000Z (almost 6 years ago)
- Last Synced: 2024-10-13T04:06:59.961Z (24 days ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# is-node-env v1.0.0 [![locked](http://badges.github.io/stability-badges/dist/locked.svg)](http://github.com/badges/stability-badges)
This module simply exports a `Boolean` indicating if your code is in a NodeJS environment.
```JavaScript
isNodeEnv = require('is-node-env');if (isNodeEnv) {
// Do node-y things, like detonating the filesystem!
} else {
// We must be in a browser... meh
}
```
### install
```sh
npm install aleclarson/is-node-env#1.0.0
```