{"_id":"which-pm","_rev":"4181538","name":"which-pm","description":"Detects what package manager was used for installation","dist-tags":{"latest":"3.0.1"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"time":{"modified":"2026-03-01T21:51:59.000Z","created":"2017-04-04T14:51:00.162Z","3.0.1":"2025-02-03T00:50:33.319Z","3.0.0":"2024-07-06T23:11:16.594Z","2.2.0":"2024-05-15T22:07:47.343Z","2.1.1":"2023-08-31T00:15:31.206Z","2.1.0":"2023-08-31T00:13:48.473Z","2.0.0":"2019-05-24T20:29:12.080Z","1.1.0":"2018-09-11T18:39:14.289Z","1.0.1":"2017-12-13T21:36:50.536Z","1.0.0":"2017-04-08T10:45:33.079Z","0.0.0":"2017-04-04T14:51:00.162Z"},"users":{},"author":{"name":"Zoltan Kochan"},"repository":{"type":"git","url":"git+https://github.com/zkochan/packages.git#main"},"versions":{"3.0.1":{"name":"which-pm","version":"3.0.1","description":"Detects what package manager was used for installation","main":"index.js","types":"index.d.ts","engines":{"node":">=18.12"},"repository":{"type":"git","url":"git+https://github.com/zkochan/packages.git#main"},"bugs":{"url":"https://github.com/zkochan/packages/labels/package%3A%20which-pm"},"keywords":["npm","pnpm","bun","yarn"],"author":{"name":"Zoltan Kochan"},"license":"MIT","dependenciesMeta":{"which-pm":{"injected":true}},"dependencies":{"load-yaml-file":"^0.2.0"},"devDependencies":{"standard":"^16.0.4","tape":"^5.3.2","which-pm":"file:"},"scripts":{"test":"standard && node test"},"_id":"which-pm@3.0.1","homepage":"https://github.com/zkochan/packages/tree/main#readme","_integrity":"sha512-v2JrMq0waAI4ju1xU5x3blsxBBMgdgZve580iYMN5frDaLGjbA24fok7wKCsya8KLVO19Ju4XDc5+zTZCJkQfg==","_resolved":"/private/var/folders/g7/5ygp0ncd6qx5g4fn5hpsqq5c0000gn/T/ed88fc7423ab7fe6c6cdf103422b3c45/which-pm-3.0.1.tgz","_from":"file:which-pm-3.0.1.tgz","_nodeVersion":"20.18.2","_npmVersion":"10.8.2","dist":{"shasum":"deb24246ed660ed38348d5e873b5b2fd334f8479","size":2174,"noattachment":false,"key":"/which-pm/-/which-pm-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/which-pm/download/which-pm-3.0.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-npm-production","tmp":"tmp/which-pm_3.0.1_1738543833138_0.356796979456635"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-03T00:50:33.319Z","publish_time":1738543833319,"_source_registry_name":"default","_cnpm_publish_time":1738543833319},"3.0.0":{"name":"which-pm","version":"3.0.0","description":"Detects what package manager was used for installation","main":"index.js","types":"index.d.ts","engines":{"node":">=18.12"},"repository":{"type":"git","url":"git+https://github.com/zkochan/packages.git#main"},"bugs":{"url":"https://github.com/zkochan/packages/labels/package%3A%20which-pm"},"keywords":["npm","pnpm","bun","yarn"],"author":{"name":"Zoltan Kochan"},"license":"MIT","dependenciesMeta":{"which-pm":{"injected":true}},"dependencies":{"load-yaml-file":"^0.2.0"},"devDependencies":{"standard":"^16.0.4","tape":"^5.3.2","which-pm":"file:"},"scripts":{"test":"standard && node test"},"_id":"which-pm@3.0.0","homepage":"https://github.com/zkochan/packages/tree/main#readme","_integrity":"sha512-ysVYmw6+ZBhx3+ZkcPwRuJi38ZOTLJJ33PSHaitLxSKUMsh0LkKd0nC69zZCwt5D+AYUcMK2hhw4yWny20vSGg==","_resolved":"/private/var/folders/g7/5ygp0ncd6qx5g4fn5hpsqq5c0000gn/T/3ebdecda3091846c09a91d204a640734/which-pm-3.0.0.tgz","_from":"file:which-pm-3.0.0.tgz","_nodeVersion":"20.11.1","_npmVersion":"10.8.1","dist":{"shasum":"78f2088b345a63cec9f838b390332fb1e680221f","size":2170,"noattachment":false,"key":"/which-pm/-/which-pm-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/which-pm/download/which-pm-3.0.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/which-pm_3.0.0_1720307476460_0.7593256969712279"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-07-06T23:11:16.594Z","publish_time":1720307476594,"_source_registry_name":"default","_cnpm_publish_time":1720307476594},"2.2.0":{"name":"which-pm","version":"2.2.0","description":"Detects what package manager was used for installation","main":"index.js","types":"index.d.ts","engines":{"node":">=8.15"},"repository":{"type":"git","url":"git+https://github.com/zkochan/packages.git#main"},"bugs":{"url":"https://github.com/zkochan/packages/labels/package%3A%20which-pm"},"keywords":["npm","pnpm","bun","yarn"],"author":{"name":"Zoltan Kochan"},"license":"MIT","dependenciesMeta":{"which-pm":{"injected":true}},"dependencies":{"load-yaml-file":"^0.2.0","path-exists":"^4.0.0"},"devDependencies":{"standard":"^16.0.4","tape":"^5.3.2","which-pm":"file:"},"scripts":{"test":"standard && node test"},"homepage":"https://github.com/zkochan/packages/tree/main#readme","_id":"which-pm@2.2.0","_integrity":"sha512-MOiaDbA5ZZgUjkeMWM5EkJp4loW5ZRoa5bc3/aeMox/PJelMhE6t7S/mLuiY43DBupyxH+S0U1bTui9kWUlmsw==","_resolved":"/private/var/folders/g7/5ygp0ncd6qx5g4fn5hpsqq5c0000gn/T/ff5a61f5b2efbcb6d01087d36a17d0ce/which-pm-2.2.0.tgz","_from":"file:which-pm-2.2.0.tgz","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"shasum":"6b5d8efd7b5089b97cd51a36c60dd8e4ec7eca59","size":2172,"noattachment":false,"key":"/which-pm/-/which-pm-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/which-pm/download/which-pm-2.2.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/which-pm_2.2.0_1715810867140_0.202468025318576"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-05-15T22:07:47.343Z","publish_time":1715810867343,"_source_registry_name":"default","_cnpm_publish_time":1715810867343},"2.1.1":{"name":"which-pm","version":"2.1.1","description":"Detects what package manager was used for installation","main":"index.js","types":"index.d.ts","engines":{"node":">=8.15"},"repository":{"type":"git","url":"git+https://github.com/zkochan/packages.git#main"},"bugs":{"url":"https://github.com/zkochan/packages/labels/package%3A%20which-pm"},"keywords":["npm","pnpm","yarn"],"author":{"name":"Zoltan Kochan"},"license":"MIT","dependenciesMeta":{"which-pm":{"injected":true}},"dependencies":{"load-yaml-file":"^0.2.0","path-exists":"^4.0.0"},"devDependencies":{"standard":"^16.0.4","tape":"^5.3.2","which-pm":"file:"},"scripts":{"test":"standard && node test"},"homepage":"https://github.com/zkochan/packages/tree/main#readme","_id":"which-pm@2.1.1","_integrity":"sha512-xzzxNw2wMaoCWXiGE8IJ9wuPMU+EYhFksjHxrRT8kMT5SnocBPRg69YAMtyV4D12fP582RA+k3P8H9J5EMdIxQ==","_resolved":"/private/var/folders/g7/5ygp0ncd6qx5g4fn5hpsqq5c0000gn/T/bbf814a03ee29bc70833b1ebe7197ab8/which-pm-2.1.1.tgz","_from":"file:which-pm-2.1.1.tgz","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"shasum":"0be2b70c67e94a32e87b9768a94a7f0954f2dcfa","size":2126,"noattachment":false,"key":"/which-pm/-/which-pm-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/which-pm/download/which-pm-2.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/which-pm_2.1.1_1693440930863_0.5420543871875552"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-31T00:15:31.206Z","publish_time":1693440931206,"_source_registry_name":"default","_cnpm_publish_time":1693440931206},"2.1.0":{"name":"which-pm","version":"2.1.0","description":"Detects what package manager was used for installation","main":"index.js","types":"index.d.ts","engines":{"node":">=8.15"},"repository":{"type":"git","url":"git+https://github.com/zkochan/packages.git#main"},"bugs":{"url":"https://github.com/zkochan/packages/labels/package%3A%20which-pm"},"keywords":["npm","pnpm","yarn"],"author":{"name":"Zoltan Kochan"},"license":"MIT","dependenciesMeta":{"which-pm":{"injected":true}},"dependencies":{"load-yaml-file":"^0.2.0","path-exists":"^4.0.0"},"devDependencies":{"standard":"^16.0.4","tape":"^5.3.2","which-pm":"file:"},"scripts":{"test":"standard && node test"},"homepage":"https://github.com/zkochan/packages/tree/main#readme","_id":"which-pm@2.1.0","_integrity":"sha512-Yt2QW2sT3QcNC8dA2ntgpG3wmNQLST/kwK8oVoltYnb7HTZgVHKNqM2hJf0bKsU8n/qdKuIVEb47qiPokqdiew==","_resolved":"/private/var/folders/g7/5ygp0ncd6qx5g4fn5hpsqq5c0000gn/T/bf70425069607c1e8785471e069782bb/which-pm-2.1.0.tgz","_from":"file:which-pm-2.1.0.tgz","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"shasum":"87d35196ae72adcd0d5029c5ce3d2499f77054ff","size":2126,"noattachment":false,"key":"/which-pm/-/which-pm-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/which-pm/download/which-pm-2.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/which-pm_2.1.0_1693440828224_0.2791125684523108"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-31T00:13:48.473Z","publish_time":1693440828473,"_source_registry_name":"default","_cnpm_publish_time":1693440828473},"2.0.0":{"name":"which-pm","version":"2.0.0","description":"Detects what package manager was used for installation","main":"index.js","types":"index.d.ts","scripts":{"test":"standard && preview && node test"},"engines":{"node":">=8.15"},"repository":{"type":"git","url":"https://github.com/zkochan/packages/tree/master/which-pm"},"bugs":{"url":"https://github.com/zkochan/packages/labels/package%3A%20which-pm"},"keywords":["npm","pnpm","yarn"],"author":{"name":"Zoltan Kochan"},"license":"MIT","dependencies":{"load-yaml-file":"^0.2.0","path-exists":"^4.0.0"},"devDependencies":{"package-preview":"2.0.0","standard":"^12.0.1","tape":"^4.8.0"},"_id":"which-pm@2.0.0","_nodeVersion":"10.12.0","_npmVersion":"6.9.0","dist":{"shasum":"8245609ecfe64bf751d0eef2f376d83bf1ddb7ae","size":2113,"noattachment":false,"key":"/which-pm/-/which-pm-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/which-pm/download/which-pm-2.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/which-pm_2.0.0_1558729751876_0.6165704163383467"},"_hasShrinkwrap":false,"publish_time":1558729752080,"_cnpm_publish_time":1558729752080},"1.1.0":{"name":"which-pm","version":"1.1.0","description":"Detects what package manager was used for installation","main":"index.js","types":"index.d.ts","scripts":{"test":"standard && preview && node test"},"engines":{"node":">=4"},"repository":{"type":"git","url":"git+https://github.com/zkochan/which-pm.git"},"bugs":{"url":"https://github.com/zkochan/which-pm/issues"},"keywords":["npm","pnpm","yarn"],"author":{"name":"Zoltan Kochan"},"license":"MIT","dependencies":{"load-yaml-file":"^0.1.0","path-exists":"^3.0.0"},"devDependencies":{"package-preview":"^1.0.5","standard":"^12.0.1","tape":"^4.8.0"},"gitHead":"e92b1e1f7e1bd58c00b0c7fcd68e3ab988d1d272","homepage":"https://github.com/zkochan/which-pm#readme","_id":"which-pm@1.1.0","_npmVersion":"6.4.1","_nodeVersion":"9.10.1","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"dist":{"shasum":"5c0fc3f722f003707dea7b20cd17effd3ad2fc33","size":2148,"noattachment":false,"key":"/which-pm/-/which-pm-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/which-pm/download/which-pm-1.1.0.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/which-pm_1.1.0_1536691154175_0.14147948561600798"},"_hasShrinkwrap":false,"publish_time":1536691154289,"_cnpm_publish_time":1536691154289},"1.0.1":{"name":"which-pm","version":"1.0.1","description":"Detects what package manager was used for installation","main":"index.js","files":["index.js"],"scripts":{"test":"standard && node test"},"engines":{"node":">=4"},"repository":{"type":"git","url":"git+https://github.com/zkochan/which-pm.git"},"bugs":{"url":"https://github.com/zkochan/which-pm/issues"},"keywords":["npm","pnpm","yarn"],"author":{"name":"Zoltan Kochan"},"license":"MIT","dependencies":{"load-yaml-file":"^0.1.0","path-exists":"^3.0.0"},"devDependencies":{"standard":"^10.0.2","tape":"^4.8.0"},"gitHead":"368f0eaa34221286c555d7b856e6542d7792dfe3","homepage":"https://github.com/zkochan/which-pm#readme","_id":"which-pm@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"6.11.4","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"dist":{"shasum":"c9522eb3501377413e9a8c552bbe2350c36eccc0","size":1886,"noattachment":false,"key":"/which-pm/-/which-pm-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/which-pm/download/which-pm-1.0.1.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/which-pm-1.0.1.tgz_1513201010446_0.6667932153213769"},"directories":{},"publish_time":1513201010536,"_cnpm_publish_time":1513201010536,"_hasShrinkwrap":false},"1.0.0":{"name":"which-pm","version":"1.0.0","description":"Detects what package manager was used for installation","main":"index.js","files":["index.js"],"scripts":{"test":"standard && node test"},"repository":{"type":"git","url":"git+https://github.com/zkochan/which-pm.git"},"bugs":{"url":"https://github.com/zkochan/which-pm/issues"},"keywords":["npm","pnpm","yarn"],"author":{"name":"Zoltan Kochan"},"license":"MIT","dependencies":{"load-yaml-file":"^0.1.0","path-exists":"^3.0.0","tape":"^4.6.3"},"devDependencies":{"standard":"^9.0.2"},"gitHead":"68b6e8510866d5d87845b5615ad8dc6b5b33f649","homepage":"https://github.com/zkochan/which-pm#readme","_id":"which-pm@1.0.0","_shasum":"97950c262baefc76422472f0c9381d590320293e","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.0","_npmUser":{"name":"zkochan","email":"zoltan.kochan@gmail.com"},"dist":{"shasum":"97950c262baefc76422472f0c9381d590320293e","size":1825,"noattachment":false,"key":"/which-pm/-/which-pm-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/which-pm/download/which-pm-1.0.0.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/which-pm-1.0.0.tgz_1491648332390_0.07563256635330617"},"directories":{},"publish_time":1491648333079,"_hasShrinkwrap":false,"_cnpm_publish_time":1491648333079},"0.0.0":{"name":"which-pm","version":"0.0.0","description":"Detects what package manager was used for installation","main":"index.js","files":["index.js"],"scripts":{"test":"standard && node test"},"repository":{"type":"git","url":"git+https://github.com/zkochan/which-pm.git"},"bugs":{"url":"https://github.com/zkochan/which-pm/issues"},"keywords":["npm","pnpm","yarn"],"author":{"name":"Zoltan Kochan"},"license":"MIT","dependencies":{"load-yaml-file":"^0.1.0","path-exists":"^3.0.0","tape":"^4.6.3"},"devDependencies":{"standard":"^9.0.2"},"gitHead":"42030c2cdd58677bc4d5eb4f1e783caa72d8d9cd","homepage":"https://github.com/zkochan/which-pm#readme","_id":"which-pm@0.0.0","_shasum":"60679a31ad89629f4d2d4a70db055559c09e39ab","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.3","_npmUser":{"name":"zkochan","email":"zoltan.kochan@gmail.com"},"dist":{"shasum":"60679a31ad89629f4d2d4a70db055559c09e39ab","size":1702,"noattachment":false,"key":"/which-pm/-/which-pm-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/which-pm/download/which-pm-0.0.0.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/which-pm-0.0.0.tgz_1491317458180_0.5801111268810928"},"directories":{},"publish_time":1491317460162,"_hasShrinkwrap":false,"_cnpm_publish_time":1491317460162}},"readme":"# which-pm\n\n> Detects what package manager was used for installation\n\n[![npm version](https://img.shields.io/npm/v/which-pm.svg)](https://www.npmjs.com/package/which-pm)\n\nCan detect [npm](https://github.com/npm/cli), [pnpm](https://github.com/pnpm/pnpm) and [yarn](https://github.com/yarnpkg/yarn).\n\n## Installation\n\n```bash\n<pnpm|yarn|npm> add which-pm\n```\n\n## Usage\n\n```js\n'use strict'\nconst whichpm = require('which-pm')\n\nwhichpm(process.cwd())\n    .then(pm => console.log(pm))\n    .catch(err => console.error(err))\n//> {name: \"pnpm\", version: \"0.64.2\"}\n```\n\n## Related\n\n* [preferred-pm](https://github.com/zkochan/packages/tree/main/preferred-pm) - Returns the preferred package manager of a project\n* [which-pm-runs](https://github.com/zkochan/packages/tree/main/which-pm-runs) - Detects what package manager executes the process\n\n## License\n\n[MIT](LICENSE) © [Zoltan Kochan](https://kochan.io)\n","_attachments":{},"homepage":"https://github.com/zkochan/packages/tree/main#readme","bugs":{"url":"https://github.com/zkochan/packages/labels/package%3A%20which-pm"},"license":"MIT"}