{"name":"preferred-pm","version":"1.0.1","description":"Detects what package manager was used for installation","main":"index.js","files":["index.js"],"scripts":{"test":"standard && preview && node test"},"engines":{"node":">=4"},"repository":{"type":"git","url":"git+https://github.com/zkochan/preferred-pm.git"},"bugs":{"url":"https://github.com/zkochan/preferred-pm/issues"},"keywords":["npm","pnpm","yarn"],"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io/"},"license":"MIT","dependencies":{"path-exists":"^3.0.0","which-pm":"^1.0.1"},"devDependencies":{"package-preview":"^1.0.5","standard":"^11.0.0","tape":"^4.8.0"},"gitHead":"fd5b2c8f335fdc2e635924f5179d8bb050ffe8ad","homepage":"https://github.com/zkochan/preferred-pm#readme","_id":"preferred-pm@1.0.1","_npmVersion":"5.7.1","_nodeVersion":"6.11.4","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"dist":{"integrity":"sha512-9Uxgin5Xnsl67DBvlNFsmDIlBuG9/XKK2cVBTj//7/7wW6ZY+IC9/GlLqxyHABpoasAsJ1MARFOdYPxMUtndxA==","shasum":"539df37ce944b1b765ae944a8ba34a7e68694e8d","tarball":"http://registry-npm.ywwl.com/preferred-pm/download/preferred-pm-1.0.1.tgz","fileCount":4,"unpackedSize":3591,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEB4iAppgKVSipdz0J4X9v0X1tsVoiex/SigV7q2YE21AiBVBM1rlJ5q9+RalliRHDHLSUTOaAe0G9v1qSuJNSgk5Q=="}],"size":1797,"noattachment":false,"key":"/preferred-pm/-/preferred-pm-1.0.1.tgz"},"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/preferred-pm_1.0.1_1520540289477_0.7783212827170696"},"_hasShrinkwrap":false,"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":1520540289610,"_cnpm_publish_time":1520540289610,"dist-tags":{"latest":"5.0.1","pnpm-temp":"3.0.2"}}