{"name":"@antfu/install-pkg","type":"module","version":"2.0.1","description":"Install package programmatically.","author":"Anthony Fu <anthonyfu117@hotmail.com>","license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu-collective/install-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu-collective/install-pkg.git"},"bugs":{"url":"https://github.com/antfu-collective/install-pkg/issues"},"sideEffects":false,"exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"types":"./dist/index.d.mts","dependencies":{"package-manager-detector":"^1.7.0","tinyexec":"^1.2.4"},"devDependencies":{"@antfu/eslint-config":"^9.1.0","@antfu/ni":"^30.2.0","@types/node":"^26.1.1","bumpp":"^12.0.0","eslint":"^10.7.0","publint":"^0.3.21","tsdown":"^0.22.12","tsx":"^4.23.1","typescript":"^5.9.3"},"scripts":{"build":"tsdown","dev":"tsdown --watch","start":"tsx src/index.ts","lint":"eslint .","release":"bumpp","typecheck":"tsc"},"_nodeVersion":"24.18.0","_id":"@antfu/install-pkg@2.0.1","dist":{"integrity":"sha512-iCKVQcIC0e3oDxEfs3SHQGW+ovhBMZmS1TE+bTk50rVyMCBmCfClv7Qi3HQKlumYwvjb/iIMeWCW2i67q6kFfQ==","shasum":"bdbc3d228e6f645c583ed93545fcdd5f5a2f0ca2","tarball":"http://registry-npm.ywwl.com/@antfu/install-pkg/download/@antfu/install-pkg-2.0.1.tgz","fileCount":5,"unpackedSize":6434,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@antfu%2finstall-pkg@2.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDvX2ejl+hP9aiTQSrQPSDZPtkbCrP5ZO7EOsItzGwuUAIhANXPjLNdZeMJnPNtRLGqKkUTynjONE8xPzF+VPYCW87I"}],"size":2707,"noattachment":false,"key":"/@antfu/install-pkg/-/@antfu/install-pkg-2.0.1.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e6f8363c-5050-492d-b3f7-615d2be0c33c"}},"directories":{},"maintainers":[{"name":"antfu","email":"anthonyfu117@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/install-pkg_2.0.1_1784623098118_0.7861671035285249"},"_hasShrinkwrap":false,"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":1784623098246,"_cnpm_publish_time":1784623098246,"dist-tags":{"latest":"2.1.0"}}