Bones/node_modules/is-npm
SOUTHERNCO\x2mjbyrn 7efe7605b8 Template Upload
2017-05-17 13:45:25 -04:00
..
index.js Template Upload 2017-05-17 13:45:25 -04:00
package.json Template Upload 2017-05-17 13:45:25 -04:00
readme.md Template Upload 2017-05-17 13:45:25 -04:00

is-npm Build Status

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