Files
async-programming-promises/node_modules/is-npm/readme.md
2019-10-23 07:41:03 -05:00

539 B

is-npm Build Status

Check if your code is running as an npm or yarn script

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