{"name":"preferred-pm","version":"2.0.0","description":"Detects what package manager was used for installation","main":"index.js","scripts":{"test":"standard && preview && node test"},"engines":{"node":">=8.15"},"repository":{"type":"git","url":"https://github.com/zkochan/packages/tree/master/preferred-pm"},"bugs":{"url":"https://github.com/zkochan/packages/labels/package%3A%20preferred-pm"},"keywords":["npm","pnpm","yarn"],"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io/"},"license":"MIT","dependencies":{"path-exists":"^4.0.0","which-pm":"2.0.0"},"devDependencies":{"package-preview":"2.0.0","standard":"^12.0.1","tape":"^4.8.0"},"_id":"preferred-pm@2.0.0","_nodeVersion":"10.12.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-Xaj9/969xtjkqWrms99W/TpkDuhAaB7xYDB3Y5SWW5F+zoU5DtninHtewn6OXlErRRhlRG1V7ckQT9Lb7K/foA==","shasum":"ff61e89dc0c852aa92f467c4a6d6f4aff2b1f138","tarball":"http://registry-npm.ywwl.com/preferred-pm/download/preferred-pm-2.0.0.tgz","fileCount":4,"unpackedSize":3629,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc6FQhCRA9TVsSAnZWagAAwvAQAI12CrvhnbO83An2/O3T\nBBkUk5keOEc0Rqciz+/8eL0A/XoU6V5lO+RVvHfgwLJoQT9wU1HkU5YhShyE\n4fCM93eJUfkgwkbSwvo8wAK+t8efXTNpQbN5IGK9b8bDP9yobmPrHUuKS+Ph\nB7nLmL7GrHi6JnW+VH2oNrW86C9edoIizucIJZVEnrtwogvc4BpCTc5uYXtb\n2bA1LebML0sHfEhHbVQhHhcY1zoS4cmgFutSpU/pgfd84k01YorM+2KBvtI6\nngWtaJFwGOEMTwy8lJkUJcysEZWgIKhCbsRHhfIOTRstWL+QC3CmVvZG3qBN\n8a23lIJQbiDY9X95/VDB6Fb2F+oPS8VstciY2r1Bo7qh/zKlWKQPTz2/HJa5\nqC0NorxW1ab6Yw5QI9Fv3DTTXxAnL6oI7l6UuigK4N4Ppm7MSJeDIy2mpPWj\n7R2li59C31yvTZTh3l6HCKJWYRUoGGQlXu3j1HGV70iltfR4/XXGeoZdmaWt\nAHjkoqAqgqsczk2S+0bw2EHM+rgR1n4ClBMoIeqclaP1TFOQDGzfmsiya5Aj\n4iuJP5du1l3iJBHGCB3QAC2+OTIA/ad6QqYHx8YwYDRuDp5gV/aw3P2W5Gke\nasYV+IrphDLCr2ciyqikL26ZsNAj148ZAtuRlCByh1c8/iiVFePray/z1JHC\n/jCG\r\n=xaYT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICWkudPMHCue5zfd5UrBf4lo3w+meVMMjAiVTAxpbazPAiEAi/57/fhtgrr5Jl7RUj/BgllVA/ofLkBYT2dAACUSYXc="}],"size":1807,"noattachment":false,"key":"/preferred-pm/-/preferred-pm-2.0.0.tgz"},"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/preferred-pm_2.0.0_1558729760367_0.8318128332115446"},"_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":1558729760470,"_cnpm_publish_time":1558729760470,"dist-tags":{"latest":"5.0.1","pnpm-temp":"3.0.2"}}