{"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":{"integrity":"sha512-ysVYmw6+ZBhx3+ZkcPwRuJi38ZOTLJJ33PSHaitLxSKUMsh0LkKd0nC69zZCwt5D+AYUcMK2hhw4yWny20vSGg==","shasum":"78f2088b345a63cec9f838b390332fb1e680221f","tarball":"http://registry-npm.ywwl.com/which-pm/download/which-pm-3.0.0.tgz","fileCount":5,"unpackedSize":4330,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHb0tEFzz8LcQLNOfGcrj5IxBhEWU0DiSbwdnuo+k0eTAiAP3u/jbQwInbeIyZpg2+dN3Bg4ThmNoxJPQAgR9PQjvg=="}],"size":2170,"noattachment":false,"key":"/which-pm/-/which-pm-3.0.0.tgz"},"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/which-pm_3.0.0_1720307476460_0.7593256969712279"},"_hasShrinkwrap":false,"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","publish_time":1720307476594,"_cnpm_publish_time":1720307476594,"dist-tags":{"latest":"4.0.0"}}