{"_id":"only-allow","_rev":"2981062","name":"only-allow","description":"Force a specific package manager to be used on a project","dist-tags":{"latest":"1.1.1"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"time":{"modified":"2023-07-11T12:00:31.000Z","created":"2020-05-01T11:16:35.473Z","1.1.1":"2022-06-23T00:28:30.400Z","1.1.0":"2022-02-18T07:51:58.747Z","1.0.0":"2020-05-01T11:23:55.925Z","0.0.0":"2020-05-01T11:16:35.473Z"},"users":{},"author":{"name":"Zoltan Kochan","email":"z@kochan.io"},"repository":{"type":"git","url":"git+https://github.com/pnpm/only-allow.git"},"versions":{"1.1.1":{"name":"only-allow","version":"1.1.1","description":"Force a specific package manager to be used on a project","main":"bin.js","bin":{"only-allow":"bin.js"},"keywords":["pnpm","cnpm","npm","yarn"],"author":{"name":"Zoltan Kochan","email":"z@kochan.io"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/pnpm/only-allow.git"},"bugs":{"url":"https://github.com/pnpm/only-allow/issues"},"homepage":"https://github.com/pnpm/only-allow#readme","dependencies":{"boxen":"^4.2.0","which-pm-runs":"^1.1.0"},"scripts":{},"_id":"only-allow@1.1.1","_integrity":"sha512-WE01hpInLQUF3MKK7vhu4p1VZLKb4rL4d+CI3rwwwsToXELx6YawNFhZy3rVU3rpQpI9kF9zFMk4OjB3xwXdJA==","_resolved":"/tmp/cc90247a492370ff0d47754b3438abcf/only-allow-1.1.1.tgz","_from":"file:only-allow-1.1.1.tgz","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"shasum":"caa4b0f04d6abe2674631877cbfbcdfab537669c","size":1876,"noattachment":false,"key":"/only-allow/-/only-allow-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/only-allow/download/only-allow-1.1.1.tgz"},"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/only-allow_1.1.1_1655944110248_0.9754878102982647"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-23T00:28:33.361Z","publish_time":1655944110400,"_cnpm_publish_time":1655944110400},"1.1.0":{"name":"only-allow","version":"1.1.0","description":"Force a specific package manager to be used on a project","main":"bin.js","bin":{"only-allow":"bin.js"},"keywords":["pnpm","cnpm","npm","yarn"],"author":"Zoltan Kochan <z@kochan.io>","license":"MIT","repository":{"type":"git","url":"git+https://github.com/pnpm/only-allow.git"},"bugs":{"url":"https://github.com/pnpm/only-allow/issues"},"homepage":"https://github.com/pnpm/only-allow#readme","dependencies":{"boxen":"^4.2.0","which-pm-runs":"^1.1.0"},"scripts":{},"_id":"only-allow@1.1.0","_integrity":"sha512-HYiuMpRuy0d0DjoQZwhwO1Ueal0NXJ2I4mNxLv3aGw/1naRcAAzVC953WNpcbjlo+ak3WsoKDjHvoMd2cSZLpw==","_resolved":"/home/zoltan/src/pnpm/only-allow/only-allow-1.1.0.tgz","_from":"file:only-allow-1.1.0.tgz","_nodeVersion":"14.18.3","_npmVersion":"8.5.1","dist":{"shasum":"73c4ea88f4b6d415a181791cc2c49ba0b4029138","size":1810,"noattachment":false,"key":"/only-allow/-/only-allow-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/only-allow/download/only-allow-1.1.0.tgz"},"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/only-allow_1.1.0_1645170718586_0.560977134788166"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-18T08:04:30.441Z","publish_time":1645170718747,"_cnpm_publish_time":1645170718747},"1.0.0":{"name":"only-allow","version":"1.0.0","description":"Force a specific package manager to be used on a project","main":"bin.js","bin":{"only-allow":"bin.js"},"scripts":{},"keywords":["pnpm","npm","yarn"],"author":{"name":"Zoltan Kochan","email":"z@kochan.io"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/pnpm/only-allow.git"},"bugs":{"url":"https://github.com/pnpm/only-allow/issues"},"homepage":"https://github.com/pnpm/only-allow#readme","dependencies":{"boxen":"^4.2.0","which-pm-runs":"^1.0.0"},"gitHead":"c9cd3039b365454c8f064a8304bac0ec7fc6d5fa","_id":"only-allow@1.0.0","_nodeVersion":"12.14.1","_npmVersion":"6.14.4","dist":{"shasum":"1ac662a2ad77f6181240847481b6add201f4ef45","size":1772,"noattachment":false,"key":"/only-allow/-/only-allow-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/only-allow/download/only-allow-1.0.0.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/only-allow_1.0.0_1588332235797_0.3119125532960829"},"_hasShrinkwrap":false,"publish_time":1588332235925,"_cnpm_publish_time":1588332235925},"0.0.0":{"name":"only-allow","version":"0.0.0","description":"Force a specific package manager to be used on a project","main":"bin.js","bin":{"only-allow":"bin.js"},"scripts":{},"keywords":["pnpm","npm","yarn"],"author":{"name":"Zoltan Kochan","email":"z@kochan.io"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/pnpm/only-allow.git"},"bugs":{"url":"https://github.com/pnpm/only-allow/issues"},"homepage":"https://github.com/pnpm/only-allow#readme","dependencies":{"boxen":"^4.2.0","which-pm-runs":"^1.0.0"},"gitHead":"4b32df105db589811a7195364f909a65c4bf1ede","_id":"only-allow@0.0.0","_nodeVersion":"12.14.1","_npmVersion":"6.14.4","dist":{"shasum":"a2143c43bd75d8bca18b2afb14882fe12d3e1c04","size":1788,"noattachment":false,"key":"/only-allow/-/only-allow-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/only-allow/download/only-allow-0.0.0.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/only-allow_0.0.0_1588331795359_0.11550479268347025"},"_hasShrinkwrap":false,"publish_time":1588331795473,"_cnpm_publish_time":1588331795473}},"readme":"# only-allow\n\n> Force a specific package manager to be used on a project\n\n## Usage\n\nAdd a `preinstall` script to your project's `package.json`.\n\nIf you want to force [npm](https://docs.npmjs.com/cli/npm), add:\n\n```json\n{\n  \"scripts\": {\n    \"preinstall\": \"npx only-allow npm\"\n  }\n}\n```\n\nIf you want to force [cnpm](https://npmmirror.com/), add:\n\n```json\n{\n  \"scripts\": {\n    \"preinstall\": \"npx only-allow cnpm\"\n  }\n}\n```\n\nIf you want to force [pnpm](https://pnpm.js.org/), add:\n\n```json\n{\n  \"scripts\": {\n    \"preinstall\": \"npx only-allow pnpm\"\n  }\n}\n```\n\nIf you want to force [yarn](https://yarnpkg.com/), add:\n\n```json\n{\n  \"scripts\": {\n    \"preinstall\": \"npx only-allow yarn\"\n  }\n}\n```\n\n## License\n\n[MIT](LICENSE)\n","_attachments":{},"homepage":"https://github.com/pnpm/only-allow#readme","bugs":{"url":"https://github.com/pnpm/only-allow/issues"},"license":"MIT"}