1
0
Fork 0
mirror of https://github.com/shimataro/ssh-key-action.git synced 2025-06-19 22:52:10 +10:00
ssh-key-action/node_modules/is-npm
2019-09-18 20:39:54 +09:00
..
index.d.ts * first action! (#1) 2019-09-18 20:39:54 +09:00
index.js * first action! (#1) 2019-09-18 20:39:54 +09:00
license * first action! (#1) 2019-09-18 20:39:54 +09:00
package.json * first action! (#1) 2019-09-18 20:39:54 +09:00
readme.md * first action! (#1) 2019-09-18 20:39:54 +09:00

is-npm Build Status

Check if your code is running as an npm or yarn script

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