mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-30 18:59:10 +00:00
.. | ||
index.js | ||
package.json | ||
readme.md |
is-npm
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