in-node
v1.0.0
Published
Checks if the program is running in node env.
Downloads
5,876
Maintainers
Readme
in-node
Checks if the program is running in node env. Shipped with proper typings.
Index
Installation
npm:
npm i in-node --save
yarn:
yarn add in-node
Usage
import {inNode} from 'in-node'
if (isNode) {
process.exit(1)
}