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: 4 months 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 (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-12-05T16:51:08.000Z (over 6 years ago)
- Last Synced: 2025-01-18T02:17:21.845Z (6 months 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 [](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
```