.. | ||
index.d.ts | ||
index.js | ||
license | ||
package.json | ||
readme.md |
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