{"name":"@antfu/install-pkg","version":"0.3.3","keywords":[],"author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","_id":"@antfu/install-pkg@0.3.3","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":"34c3837132157e6ca23fe9587d1e174b0f33dc1a","tarball":"http://registry-npm.ywwl.com/@antfu/install-pkg/download/@antfu/install-pkg-0.3.3.tgz","fileCount":7,"integrity":"sha512-nHHsk3NXQ6xkCfiRRC8Nfrg8pU5kkr3P3Y9s9dKqiuRmBD0Yap7fymNDjGFKeWhZQHqqbCS5CfeMy9wtExM24w==","signatures":[{"sig":"MEUCIHnZCoon4KvM5cm6DCCfnpWJLL6njIIXQR13SOOUfdhnAiEA3Cma7SYPL8u8LL57oe44AV1mHZvzIXW2d4zQIqyjfgk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27111,"size":6161,"noattachment":false,"key":"/@antfu/install-pkg/-/@antfu/install-pkg-0.3.3.tgz"},"main":"dist/index.cjs","type":"module","_from":"file:antfu-install-pkg-0.3.3.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/ee6169025fda76d09d9d3ad2aa605588/antfu-install-pkg-0.3.3.tgz","_integrity":"sha512-nHHsk3NXQ6xkCfiRRC8Nfrg8pU5kkr3P3Y9s9dKqiuRmBD0Yap7fymNDjGFKeWhZQHqqbCS5CfeMy9wtExM24w==","repository":{"url":"git+https://github.com/antfu/install-pkg.git","type":"git"},"_npmVersion":"10.2.4","description":"Install package programmatically.","directories":{},"sideEffects":false,"_nodeVersion":"20.11.1","dependencies":{"@jsdevtools/ez-spawn":"^3.0.4"},"_hasShrinkwrap":false,"devDependencies":{"esno":"^4.7.0","tsup":"^8.0.2","bumpp":"^9.4.0","eslint":"^9.1.1","find-up":"^7.0.0","publint":"^0.2.7","@antfu/ni":"^0.21.12","typescript":"^5.4.5","@types/node":"^20.12.7","@antfu/eslint-config":"^2.16.0"},"_npmOperationalInternal":{"tmp":"tmp/install-pkg_0.3.3_1714072063392_0.6218336043819441","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":1714072063554,"_cnpm_publish_time":1714072063554,"dist-tags":{"latest":"2.1.0"}}