{"name":"is-npm","version":"6.0.0","description":"Check if your code is running as an npm script","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-npm.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["npm","yarn","is","check","detect","env","environment","run","script"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"cf92824c7840de00db2a9e28ac51b8749a5bebab","bugs":{"url":"https://github.com/sindresorhus/is-npm/issues"},"homepage":"https://github.com/sindresorhus/is-npm#readme","_id":"is-npm@6.0.0","_nodeVersion":"16.9.1","_npmVersion":"7.20.3","dist":{"integrity":"sha512-JEjxbSmtPSt1c8XTkVrlujcXdKV1/tvuQ7GwKcAlyiVLeYFQ2VHat8xfrDJsIkhCdF/tZ7CiIR3sy141c6+gPQ==","shasum":"b59e75e8915543ca5d881ecff864077cba095261","tarball":"http://registry-npm.ywwl.com/is-npm/download/is-npm-6.0.0.tgz","fileCount":5,"unpackedSize":5036,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2wFTCRA9TVsSAnZWagAAChYP/Rzdkucqyt7RQjP2kPa3\nXRug2CYoWOHUHp+GVLb17mRuukZT1e3Kh6TK9YWL2Jldu0/THqUS6KVzNQI2\n+wI0ERfRa+R6P2YBzyAuvtJTe9XxbfBv4Ug1u5aeMAObvV7044vPmCHRczpt\nUVadcG/3gZ372xphr2SYBdkNL5mAIoMo+X0CWxZYKA5DS1RbQHrw4qlrelW/\nMUWeOnAZBydFOYm77J9uZUkOcAysV5I6qtDla9gZrYndvTsF0u1l7ajee25E\n7TqcoZedmyeQXgPrA6q5Yl2E3JXwa/h/9CvU4IKTKrFvfLp8fsXNVuiBKJFW\nagwmq58T073gyToV93PoYO0gnfqjZhbj3O/wIn8F+P8WJ+cqYRdiaLi1hFfb\n2LY4vTQ7a9swHX5uL1GGpEGtR8OYv8I8ePpVKIyxNd/mGdKrXup0y2vS08zG\nGZjEMmifu9KSMXYPbG+iJEDoZU28p/DFaWUXoQpXV5ckhv3OeI+/OcJP5y/S\nzxSFTMa3hpLdV8jgt4m5Y54JtceHdshJJ/iWBhuR4bgDqpLllpbHUiOZsGU3\noIBx53WN6wI4jE+ETBfbIudEeCIpD9KOkacFIW1brd1Mu5DLUFeHYT0n5AM1\n76WV6/5AcGFBaiGdjR6PlgESpAdUeCKO7zVhHZjoyiJj9s5+fTggB+7ixyh7\naJKo\r\n=SSp2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG96DTGJK1hMZZ1uWFfk8NQwOpYH1tHoWW0sms+9jW0pAiEA6pczTteZq63S31iJUKe3v1nm2a2M75WJzcx1BHlA9DQ="}],"size":2039,"noattachment":false,"key":"/is-npm/-/is-npm-6.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-npm_6.0.0_1631992182077_0.6701392635768113"},"_hasShrinkwrap":false,"readme":"# is-npm\n\n> Check if your code is running as an [npm](https://docs.npmjs.com/misc/scripts) or [yarn](https://yarnpkg.com/lang/en/docs/cli/run/) script\n\n## Install\n\n```sh\nnpm install is-npm\n```\n\n## Usage\n\n```js\nimport {isNpmOrYarn, isNpm, isYarn} from 'is-npm';\n\nconsole.table({isNpmOrYarn, isNpm, isYarn});\n```\n\n```sh\n$ node foo.js\n# ┌─────────────┬────────┐\n# │   (index)   │ Values │\n# ├─────────────┼────────┤\n# │ isNpmOrYarn │ false  │\n# │    isNpm    │ false  │\n# │   isYarn    │ false  │\n# └─────────────┴────────┘\n$ npm run foo\n# ┌─────────────┬────────┐\n# │   (index)   │ Values │\n# ├─────────────┼────────┤\n# │ isNpmOrYarn │  true  │\n# │    isNpm    │  true  │\n# │   isYarn    │ false  │\n# └─────────────┴────────┘\n$ yarn run foo\n# ┌─────────────┬────────┐\n# │   (index)   │ Values │\n# ├─────────────┼────────┤\n# │ isNpmOrYarn │  true  │\n# │    isNpm    │ false  │\n# │   isYarn    │  true  │\n# └─────────────┴────────┘\n```\n\n## Related\n\n- [is-npm-cli](https://github.com/sindresorhus/is-npm-cli) - CLI for this module\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-is-npm?utm_source=npm-is-npm&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","publish_time":1631992182241,"_cnpm_publish_time":1631992182241,"dist-tags":{"latest":"6.1.0"}}