{"name":"@antfu/install-pkg","version":"1.1.0","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","_id":"@antfu/install-pkg@1.1.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":"78fa036be1a6081b5a77a5cf59f50c7752b6ba26","tarball":"http://registry-npm.ywwl.com/@antfu/install-pkg/download/@antfu/install-pkg-1.1.0.tgz","fileCount":7,"integrity":"sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ==","signatures":[{"sig":"MEQCIDYyyXqaukJuy4mEO1IWR5CiRkxdRD7QFvm/b2+pGwlfAiBWCEuq68W5fMvpo3Ah6NuJIt7ZlkN6eezXfKDc2/O0sw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12918,"size":3783,"noattachment":false,"key":"/@antfu/install-pkg/-/@antfu/install-pkg-1.1.0.tgz"},"main":"dist/index.cjs","type":"module","_from":"file:antfu-install-pkg-1.1.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":"tsx 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/f470b7a1db94abb8c5cecd0c81f6fdde/antfu-install-pkg-1.1.0.tgz","_integrity":"sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ==","repository":{"url":"git+https://github.com/antfu/install-pkg.git","type":"git"},"_npmVersion":"10.9.2","description":"Install package programmatically.","directories":{},"sideEffects":false,"_nodeVersion":"22.13.1","dependencies":{"tinyexec":"^1.0.1","package-manager-detector":"^1.3.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.4","tsup":"^8.4.0","bumpp":"^10.1.0","eslint":"^9.26.0","publint":"^0.3.12","@antfu/ni":"^24.3.0","typescript":"^5.8.3","@types/node":"^22.15.12","@antfu/eslint-config":"^4.12.1"},"_npmOperationalInternal":{"tmp":"tmp/install-pkg_1.1.0_1746520436851_0.7661417164727546","host":"s3://npm-registry-packages-npm-production"},"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":1746520437022,"_cnpm_publish_time":1746520437022,"dist-tags":{"latest":"2.1.0"}}