539 B
539 B
is-npm ![Build Status](https://travis-ci.org/sindresorhus/is-npm.svg?branch=master)
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