{"name":"@antfu/install-pkg","version":"0.5.0","keywords":[],"author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","_id":"@antfu/install-pkg@0.5.0","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":"37357c16a962266c0a8811ee29b3ea1354d952d9","tarball":"http://registry-npm.ywwl.com/@antfu/install-pkg/download/@antfu/install-pkg-0.5.0.tgz","fileCount":7,"integrity":"sha512-dKnk2xlAyC7rvTkpkHmu+Qy/2Zc3Vm/l8PtNyIOGDBtXPY3kThfU4ORNEp3V7SXw5XSOb+tOJaUYpfquPzL/Tg==","signatures":[{"sig":"MEUCIQDmgIznkZCUbfGnCtSfJbEurwTDT2d7N0YIvc54h3cJ4gIgRuMEGQFvvQ1uy+Hmgk5WV81VKakKbJVi8sXKQd8+tew=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10178,"size":3575,"noattachment":false,"key":"/@antfu/install-pkg/-/@antfu/install-pkg-0.5.0.tgz"},"main":"dist/index.cjs","type":"module","_from":"file:antfu-install-pkg-0.5.0.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/00d3e6de68b033677c57fe082b693765/antfu-install-pkg-0.5.0.tgz","_integrity":"sha512-dKnk2xlAyC7rvTkpkHmu+Qy/2Zc3Vm/l8PtNyIOGDBtXPY3kThfU4ORNEp3V7SXw5XSOb+tOJaUYpfquPzL/Tg==","repository":{"url":"git+https://github.com/antfu/install-pkg.git","type":"git"},"_npmVersion":"10.8.2","description":"Install package programmatically.","directories":{},"sideEffects":false,"_nodeVersion":"20.18.0","dependencies":{"tinyexec":"^0.3.1","package-manager-detector":"^0.2.5"},"_hasShrinkwrap":false,"devDependencies":{"esno":"^4.8.0","tsup":"^8.3.5","bumpp":"^9.8.1","eslint":"^9.15.0","publint":"^0.2.12","@antfu/ni":"^0.23.1","typescript":"^5.7.2","@types/node":"^22.10.0","@antfu/eslint-config":"^3.10.0"},"_npmOperationalInternal":{"tmp":"tmp/install-pkg_0.5.0_1732675975297_0.05630188027132044","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":1732675975495,"_cnpm_publish_time":1732675975495,"dist-tags":{"latest":"2.1.0"}}