{"name":"@antfu/install-pkg","version":"0.3.1","keywords":[],"author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","_id":"@antfu/install-pkg@0.3.1","maintainers":[{"name":"antfu","email":"anthonyfu117@hotmail.com"}],"homepage":"https://github.com/antfu/install-pkg#readme","bugs":{"url":"https://github.com/antfu/install-pkg/issues"},"dist":{"shasum":"f63b3c98f92b455cd0929d4503eab276c9680943","tarball":"http://registry-npm.ywwl.com/@antfu/install-pkg/download/@antfu/install-pkg-0.3.1.tgz","fileCount":7,"integrity":"sha512-A3zWY9VeTPnxlMiZtsGHw2lSd3ghwvL8s9RiGOtqvDxhhFfZ781ynsGBa/iUnDJ5zBrmTFQrJDud3TGgRISaxw==","signatures":[{"sig":"MEQCIEKtgvemPS0F6KnuO323+O/nGQ1DDgoEfWsXqUFm6mdUAiBQ9abfhZ5WZXHeHwKODvWnxwwNSOIUIGF3/sYcVc4MGQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26450,"size":5990,"noattachment":false,"key":"/@antfu/install-pkg/-/@antfu/install-pkg-0.3.1.tgz"},"main":"dist/index.cjs","type":"module","_from":"file:antfu-install-pkg-0.3.1.tgz","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"funding":"https://github.com/sponsors/antfu","scripts":{"dev":"nr build --watch","lint":"eslint .","build":"tsup src/index.ts --format cjs,esm --dts --no-splitting","start":"esno src/index.ts","release":"bumpp --commit --push --tag && pnpm publish"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"_resolved":"/private/var/folders/30/nymxcyb909ggq2j5lwn7b_600000gn/T/415a83b3824cf9f2b895aa40495bde40/antfu-install-pkg-0.3.1.tgz","_integrity":"sha512-A3zWY9VeTPnxlMiZtsGHw2lSd3ghwvL8s9RiGOtqvDxhhFfZ781ynsGBa/iUnDJ5zBrmTFQrJDud3TGgRISaxw==","repository":{"url":"git+https://github.com/antfu/install-pkg.git","type":"git"},"_npmVersion":"9.7.2","description":"Install package programmatically.","directories":{},"sideEffects":false,"_nodeVersion":"20.4.0","dependencies":{"execa":"^8.0.1"},"_hasShrinkwrap":false,"packageManager":"pnpm@8.11.0","devDependencies":{"esno":"^4.0.0","tsup":"^8.0.1","bumpp":"^9.2.0","eslint":"^8.54.0","find-up":"^7.0.0","publint":"^0.2.5","@antfu/ni":"^0.21.11","typescript":"^5.3.2","@types/node":"^20.10.0","@antfu/eslint-config":"^2.1.1"},"_npmOperationalInternal":{"tmp":"tmp/install-pkg_0.3.1_1701443871034_0.15241746602631623","host":"s3://npm-registry-packages"},"readme":"# install-pkg\n\n[![NPM version](https://img.shields.io/npm/v/@antfu/install-pkg?color=a1b858&label=)](https://www.npmjs.com/package/@antfu/install-pkg)\n\nInstall package programmatically. Detect package managers automatically (`npm`, `yarn`, `bun` and `pnpm`).\n\n```bash\nnpm i @antfu/install-pkg\n```\n\n```ts\nimport { installPackage } from '@antfu/install-pkg'\n\nawait installPackage('vite', { silent: true })\n```\n\n## Sponsors\n\n<p align=\"center\">\n  <a href=\"https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg\">\n    <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg' alt=\"Sponsors\"/>\n  </a>\n</p>\n\n## License\n\n[MIT](./LICENSE) License © 2021 [Anthony Fu](https://github.com/antfu)\n","publish_time":1701443871196,"_cnpm_publish_time":1701443871196,"dist-tags":{"latest":"2.1.0"}}