Vinícius Ernani de Carvalho 6c4544a079 Create the backend 5 anos atrás
..
index.js 6c4544a079 Create the backend 5 anos atrás
package.json 6c4544a079 Create the backend 5 anos atrás
readme.md 6c4544a079 Create the backend 5 anos atrás

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