mirror of
https://github.com/bvanroll/yahoo-thing.git
synced 2025-08-29 12:02:48 +00:00
is-npm 
Check if your code is running as an npm script
Install
$ npm install --save is-npm
Usage
var isNpm = require('is-npm');
console.log(isNpm);
$ node foo.js
#=> false
$ npm run foo
#=> true
License
MIT © Sindre Sorhus