{"name":"@antfu/install-pkg","version":"0.3.5","keywords":[],"author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","_id":"@antfu/install-pkg@0.3.5","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":"f26e94520f877e6d508a5304fa8d740b49d0ef31","tarball":"http://registry-npm.ywwl.com/@antfu/install-pkg/download/@antfu/install-pkg-0.3.5.tgz","fileCount":7,"integrity":"sha512-HwIACY0IzrM7FGafMbWZOqEDBSfCwPcylu+GacaRcxJm4Yvvuh3Dy2vZwqdJAzXponc6aLO9FaH4l75pq8/ZSA==","signatures":[{"sig":"MEUCIEss0Ymn1gfoCAIKIAD5vG5JP/KwB9JILR2EZdegVCc4AiEAjfh73ORc1xCMhAhylewb/EfBMbU991BMlISH80o+raw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26994,"size":6146,"noattachment":false,"key":"/@antfu/install-pkg/-/@antfu/install-pkg-0.3.5.tgz"},"main":"dist/index.cjs","type":"module","_from":"file:antfu-install-pkg-0.3.5.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/9493c2aceb92a55bfe91de908e5825a1/antfu-install-pkg-0.3.5.tgz","_integrity":"sha512-HwIACY0IzrM7FGafMbWZOqEDBSfCwPcylu+GacaRcxJm4Yvvuh3Dy2vZwqdJAzXponc6aLO9FaH4l75pq8/ZSA==","repository":{"url":"git+https://github.com/antfu/install-pkg.git","type":"git"},"_npmVersion":"10.5.0","description":"Install package programmatically.","directories":{},"sideEffects":false,"_nodeVersion":"20.12.2","dependencies":{"@jsdevtools/ez-spawn":"^3.0.4"},"_hasShrinkwrap":false,"devDependencies":{"esno":"^4.7.0","tsup":"^8.2.4","bumpp":"^9.5.1","eslint":"^9.9.0","find-up":"^7.0.0","publint":"^0.2.10","@antfu/ni":"^0.22.4","typescript":"^5.5.4","@types/node":"^22.3.0","@antfu/eslint-config":"^2.25.1"},"_npmOperationalInternal":{"tmp":"tmp/install-pkg_0.3.5_1723727950702_0.9264635606181697","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":1723727950969,"_cnpm_publish_time":1723727950969,"dist-tags":{"latest":"2.1.0"}}