{"name":"@antfu/install-pkg","version":"0.4.1","keywords":[],"author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","_id":"@antfu/install-pkg@0.4.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":"d1d7f3be96ecdb41581629cafe8626d1748c0cf1","tarball":"http://registry-npm.ywwl.com/@antfu/install-pkg/download/@antfu/install-pkg-0.4.1.tgz","fileCount":7,"integrity":"sha512-T7yB5QNG29afhWVkVq7XeIMBa5U/vs9mX69YqayXypPRmYzUmzwnYltplHmPtZ4HPCn+sQKeXW8I47wCbuBOjw==","signatures":[{"sig":"MEUCIQCXdwzs4kuBI9/F0T93px7t1TAITGAadKplns0IffID1AIgOvtVRtcaUR26V2X6lGfQEpmHova5WJbbbfsLSYZZLu0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9504,"size":3434,"noattachment":false,"key":"/@antfu/install-pkg/-/@antfu/install-pkg-0.4.1.tgz"},"main":"dist/index.cjs","type":"module","_from":"file:antfu-install-pkg-0.4.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/79f95b1be6c495fa74b7a87a26142c83/antfu-install-pkg-0.4.1.tgz","_integrity":"sha512-T7yB5QNG29afhWVkVq7XeIMBa5U/vs9mX69YqayXypPRmYzUmzwnYltplHmPtZ4HPCn+sQKeXW8I47wCbuBOjw==","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":{"tinyexec":"^0.3.0","package-manager-detector":"^0.2.0"},"_hasShrinkwrap":false,"devDependencies":{"esno":"^4.7.0","tsup":"^8.2.4","bumpp":"^9.5.2","eslint":"^9.9.1","publint":"^0.2.10","@antfu/ni":"^0.22.4","typescript":"^5.5.4","@types/node":"^22.5.0","@antfu/eslint-config":"^2.27.2"},"_npmOperationalInternal":{"tmp":"tmp/install-pkg_0.4.1_1724690447005_0.06152669483451523","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":1724690447172,"_cnpm_publish_time":1724690447172,"dist-tags":{"latest":"2.1.0"}}