{"name":"is-npm","version":"3.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"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["npm","is","check","detect","env","environment","run","script"],"devDependencies":{"ava":"^1.3.1","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"5e207a26760f883d91923e3bbfe4a1ed7a9f6a5a","bugs":{"url":"https://github.com/sindresorhus/is-npm/issues"},"homepage":"https://github.com/sindresorhus/is-npm#readme","_id":"is-npm@3.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-wsigDr1Kkschp2opC4G3yA6r9EgVA6NjRpWzIi9axXqeIaAATPRJc4uLujXe3Nd9uO8KoDyA4MD6aZSeXTADhA==","shasum":"ec9147bfb629c43f494cf67936a961edec7e8053","tarball":"http://registry-npm.ywwl.com/is-npm/download/is-npm-3.0.0.tgz","fileCount":5,"unpackedSize":2816,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchgKKCRA9TVsSAnZWagAAlaIP/0yWMiijYVl6mBwXaafP\nfBVdF30qK8BfYe9AgMmFm/vEDTYL9UIPSWKsKVfYSwXOSGn/Lq/NUCHuaP4h\nUxv/NQ44Z1APFFffFEkR2lOiXCDx3iAmMGUUNibOQ3PD+f1CnsEUvu560x7j\n6GsfXlNW8iX+hExhqUkvuR5RvYs8IfTNP5WlGsHHsodPc9f+F3zI0lw6/MOP\ndU8Kn4hQA7K77h2uRF/fecDSEhdBhrKvgbYP7Ue2OSDPLxiHSHUgff45qVvr\n4TFMSagrRyj7lHouI2t9IwtIU5GBVCFgDiMfyK7zUFAIo7B6XK2oD4OkkF9q\nfabQLOQr1SeXZcaM+tp8TopWnumFkVsvkCp+Y+Feqd8kP/C9OUPcpethMzMx\nnsunHQg44f99cl1tevFhDVx4Ju6jgYUNvCGn405qhx8+P787foycWzVU7I67\nEecGPm6dHPjgkzNTH0z1YksdfZw+NOZqLuUvTFzeLhafNuTQeMRja6Nub0tw\n6BXN/5UIx2wwGAvoSu4/ELrkKiTst+ZG5pakhyWURYn2UMkKScmi4AhrTE2N\nLD7vNlZeJs5fxqcnDZ8CwcbD0sN9mOAVob+HTIkqXKnSamxrzC7x0+yapj82\nixsatyZGCqq4WwY4Q7q2c56op9ZTpoA79zfypB3QMiSuAymW7yTvXQK84zk4\naILq\r\n=47IG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBgWbvm3HRbQKqdRoQyEXXwhGmOopHSa42e6O715V50CAiEAlrB0SLdVb9k7nnEz8fayXr1MxgBzxCKtDjOepW49vo8="}],"size":1625,"noattachment":false,"key":"/is-npm/-/is-npm-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-npm_3.0.0_1552286345432_0.058244315730821006"},"_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":1552286345582,"_cnpm_publish_time":1552286345582,"dist-tags":{"latest":"6.1.0"}}