is-npm-cli
Check if your code is running as an npm script
Install
npm install --global is-npm-cli
Usage
$ is-npm --help
Usage
$ is-npm
Exits with code 0 if running as an npm script, otherwise code 2
Related
- is-npm - API for this module