{"name":"is-npm","version":"5.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"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["npm","yarn","is","check","detect","env","environment","run","script"],"devDependencies":{"ava":"^2.4.0","tsd":"^0.11.0","xo":"^0.30.0"},"gitHead":"4647938c7ba294b161d07902020cf3f178815c29","bugs":{"url":"https://github.com/sindresorhus/is-npm/issues"},"homepage":"https://github.com/sindresorhus/is-npm#readme","_id":"is-npm@5.0.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-WW/rQLOazUq+ST/bCAVBp/2oMERWLsR7OrKyt052dNDk4DHcDE0/7QSXITlmi+VBcV13DfIbysG3tZJm5RfdBA==","shasum":"43e8d65cc56e1b67f8d47262cf667099193f45a8","tarball":"http://registry-npm.ywwl.com/is-npm/download/is-npm-5.0.0.tgz","fileCount":5,"unpackedSize":5104,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevt33CRA9TVsSAnZWagAAH5gP/2sn6xtU+emTJj0p53dI\n5vcF9rgnVZWUWo52oLUN2q6P+7ZNMehn/ri7dJAVueq3KulU4HFp+0Pu4gdh\nez0x/KNrc7K6qqLP3d7TM9wPPVP0cSkG3f/OMiH8iAEfEs7rgvyjmYAcen4Y\n5fGM1RIiv8yKukWca3YTgu+n1+kvag6i1jWT0Ie1M2qD464cYgisKT0P2JDI\nd8wurtkafEFhCjhhLfzGsE9C9PwAfhrXP0V30dwoQzF3se2ext0/sGshUPtr\n4GCIkytMH2xiuukfz05VKOyVqKr3gQOEBvho8VnVRayDyqlEWeS4JNt06LGA\n83O6x3VfQcZHGIPZJXoMO1CVagvl0IxcX9dpDSObItkoL/zbaRGZDzlwIgir\nM+uXcjsTwKLBkiUg3ivRWJHVkx5aK5LDM2ZqmoWrxKM/4WCkZC+UTUFNncWZ\nbkGSz7Q7e/oWU+SNsxYfNluWD3OyiJQmGCaw1Xt6OQif1sH4MZ/gecig534g\nxf8NPFGS+RXmQKJnR2hdqfSzhzEOY30Pyh11kfx1w3ckktOZl3Wdd+mocqI0\n3eTZNTycry9t9C4zPri14ttTSMhkdiRRXstOAddGqjgu23pmXdFUu7jrYdn/\nJ65Fgq7HGnaiDuKeRFLFxuItrC8/3xGtl5SLayeDGdYX+FEpARQzlxUJJ15y\nqHfC\r\n=tEVi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH3uEJoc4K7m6mmWcSv0mCBIcqwGDZmtws3kl+r1YKxlAiEAtcGOkUwht5jiwMc1RpdLdnlCaQG7DJqKMD1QLZb++4Y="}],"size":2093,"noattachment":false,"key":"/is-npm/-/is-npm-5.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-npm_5.0.0_1589566966767_0.06135496724857736"},"_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":1589566966880,"_cnpm_publish_time":1589566966880,"dist-tags":{"latest":"6.1.0"}}