539 B
539 B
is-npm
Install
$ npm install is-npm
Usage
const {isNpm} = require('is-npm');
console.log(isNpm);
$ node foo.js
#=> false
$ npm run foo
#=> true
$ yarn run foo
#=> true
License
MIT © Sindre Sorhus