Files
yahoo-thing/node_modules/is-npm
2019-01-25 01:39:48 +01:00
..
euh
2019-01-25 01:39:48 +01:00
euh
2019-01-25 01:39:48 +01:00
euh
2019-01-25 01:39:48 +01: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