Vinícius Ernani de Carvalho 6c4544a079 Create the backend 5 years ago
..
index.js 6c4544a079 Create the backend 5 years ago
package.json 6c4544a079 Create the backend 5 years ago
readme.md 6c4544a079 Create the backend 5 years ago

readme.md

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