Detalhes do pacote

is-npm-cli

sindresorhus3kMIT2.0.0

Check if your code is running as an npm script

cli-app, cli, npm, yarn

readme (leia-me)

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