UNPKG

is-npm-cli

Version:

Check if your code is running as an npm script

25 lines (15 loc) 328 B
# is-npm-cli > Check if your code is running as an npm script ## Install ```sh 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](https://github.com/sindresorhus/is-npm) - API for this module