is-npm-script
v1.0.0
Published
Module for checking if the program was run from npm script
Downloads
8
Readme
is-npm-script
Module for checking if the program was run from npm script
Install
$ npm install --save is-npm-script
Usage
const isNpmScript = require('is-npm-script')
if (isNpmScript()) {
console.log('Running from an NPM script');
}
License
MIT © Bjornskjald