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