{"_id":"preferred-pm@5.0.1","bugs":{"url":"https://github.com/zkochan/packages/labels/package%3A%20preferred-pm"},"dist":{"shasum":"46af268079d15ec91ed0919bc61ec8a5b565e645","tarball":"http://registry-npm.ywwl.com/preferred-pm/download/preferred-pm-5.0.1.tgz","fileCount":5,"integrity":"sha512-e9GTXG/OIn7OOp5iz0jqSs8QQ+q+giGTpYCbPKd0V6VVWrZE/2Jj4v8onnVTNotLNa6iFcPG65sLZhc3kdetyg==","signatures":[{"sig":"MEQCIA4YkwyXRaH5bC9yR2xMiotnbYFraecRglag5AfdcRv3AiBbMjGcBLisNFYUCtg24EeHJ/8amF7zNzhQMHVf242NdA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGvl2Gp5fa2CUbKu+k/Mb0ozEOjo5wtn90sTzgjNdJoYAiEAqN7qQng/4ZfBxO7z3vDnC7vJh0y+MlpMXwDnOhgpYwo="}],"unpackedSize":5012,"size":2218,"noattachment":false,"key":"/preferred-pm/-/preferred-pm-5.0.1.tgz"},"main":"index.js","name":"preferred-pm","type":"module","author":{"url":"https://www.kochan.io/","name":"Zoltan Kochan","email":"z@kochan.io"},"engines":{"node":">=22.13"},"exports":"./index.js","license":"MIT","scripts":{"test":"standard && node --test test/index.js"},"version":"5.0.1","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"keywords":["npm","pnpm","yarn"],"repository":{"url":"https://github.com/zkochan/packages/tree/main/preferred-pm","type":"git"},"description":"Detects what package manager was used for installation","directories":{},"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"dependencies":{"which-pm":"^4.0.0","find-up-simple":"^1.0.1","find-yarn-workspace-root2":"1.2.53"},"_hasShrinkwrap":false,"devDependencies":{"ncp":"^2.0.0","tempy":"^3.2.0","standard":"^17.1.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/preferred-pm_5.0.1_1790546807102_0.40359895906993115"},"readme":"# preferred-pm\n\n> Returns the preferred package manager of a project\n\n[![npm version](https://img.shields.io/npm/v/preferred-pm.svg)](https://www.npmjs.com/package/preferred-pm)\n\n* Inside a Yarn workspace, Yarn is preferred.\n* Inside a pnpm workspace, pnpm is preferred.\n* If a `package-lock.json` is present, npm is preferred.\n* If a `yarn.lock` is present, Yarn is preferred.\n* If a `pnpm-lock.yaml` is present, pnpm is preferred.\n* If a `bun.lockb` is present, Bun is preferred.\n* If a `node_modules` is present, tries to detect which package manager installed it.\n\n## Installation\n\n```\n<pnpm|yarn|npm|bun> add preferred-pm\n```\n\n## Usage\n\n```js\n'use strict'\nconst preferredPM = require('preferred-pm')\n\npreferredPM(process.cwd())\n    .then(pm => console.log(pm))\n//> {name: \"npm\", version: \">=5\"}\n```\n\n## Related\n\n* [which-pm](https://github.com/zkochan/packages/tree/main/which-pm) - Detects what package manager was used for installation\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":1790546807194,"_cnpm_publish_time":1790546807194,"dist-tags":{"latest":"5.0.1","pnpm-temp":"3.0.2"}}