{"_id":"@antfu/install-pkg","_rev":"4114790","name":"@antfu/install-pkg","description":"Install package programmatically.","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"antfu","email":""}],"time":{"modified":"2026-02-03T17:59:10.000Z","created":"2021-09-28T04:56:09.769Z","1.1.0":"2025-05-06T08:33:57.022Z","1.0.0":"2025-01-09T09:45:43.879Z","0.5.0":"2024-11-27T02:52:55.495Z","0.4.1":"2024-08-26T16:40:47.172Z","0.4.0":"2024-08-20T20:25:06.295Z","0.3.5":"2024-08-15T13:19:10.969Z","0.3.4":"2024-08-12T10:24:17.036Z","0.3.3":"2024-04-25T19:07:43.554Z","0.3.2":"2024-03-28T08:13:39.688Z","0.3.1":"2023-12-01T15:17:51.196Z","0.3.0":"2023-11-27T14:27:49.855Z","0.2.0":"2023-11-21T19:10:29.386Z","0.1.1":"2022-09-21T02:44:42.820Z","0.1.0":"2021-10-02T01:01:52.272Z","0.0.0":"2021-09-28T04:56:09.769Z"},"users":{},"author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"repository":{"type":"git","url":"git+https://github.com/antfu/install-pkg.git"},"versions":{"1.1.0":{"name":"@antfu/install-pkg","type":"module","version":"1.1.0","description":"Install package programmatically.","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/install-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/install-pkg.git"},"bugs":{"url":"https://github.com/antfu/install-pkg/issues"},"sideEffects":false,"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","dependencies":{"package-manager-detector":"^1.3.0","tinyexec":"^1.0.1"},"devDependencies":{"@antfu/eslint-config":"^4.12.1","@antfu/ni":"^24.3.0","@types/node":"^22.15.12","bumpp":"^10.1.0","eslint":"^9.26.0","publint":"^0.3.12","tsup":"^8.4.0","tsx":"^4.19.4","typescript":"^5.8.3"},"scripts":{"dev":"nr build --watch","start":"tsx src/index.ts","build":"tsup src/index.ts --format cjs,esm --dts --no-splitting","release":"bumpp --commit --push --tag && pnpm publish","lint":"eslint ."},"_id":"@antfu/install-pkg@1.1.0","_integrity":"sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ==","_resolved":"/private/var/folders/30/nymxcyb909ggq2j5lwn7b_600000gn/T/f470b7a1db94abb8c5cecd0c81f6fdde/antfu-install-pkg-1.1.0.tgz","_from":"file:antfu-install-pkg-1.1.0.tgz","_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"shasum":"78fa036be1a6081b5a77a5cf59f50c7752b6ba26","size":3783,"noattachment":false,"key":"/@antfu/install-pkg/-/@antfu/install-pkg-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@antfu/install-pkg/download/@antfu/install-pkg-1.1.0.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/install-pkg_1.1.0_1746520436851_0.7661417164727546"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-05-06T08:33:57.022Z","publish_time":1746520437022,"_source_registry_name":"default","_cnpm_publish_time":1746520437022},"1.0.0":{"name":"@antfu/install-pkg","type":"module","version":"1.0.0","description":"Install package programmatically.","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/install-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/install-pkg.git"},"bugs":{"url":"https://github.com/antfu/install-pkg/issues"},"sideEffects":false,"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","dependencies":{"package-manager-detector":"^0.2.8","tinyexec":"^0.3.2"},"devDependencies":{"@antfu/eslint-config":"^3.12.2","@antfu/ni":"^23.2.0","@types/node":"^22.10.5","bumpp":"^9.10.0","eslint":"^9.17.0","publint":"^0.3.0","tsup":"^8.3.5","tsx":"^4.19.2","typescript":"^5.7.3"},"scripts":{"dev":"nr build --watch","start":"tsx src/index.ts","build":"tsup src/index.ts --format cjs,esm --dts --no-splitting","release":"bumpp --commit --push --tag && pnpm publish","lint":"eslint ."},"_id":"@antfu/install-pkg@1.0.0","_integrity":"sha512-xvX6P/lo1B3ej0OsaErAjqgFYzYVcJpamjLAFLYh9vRJngBrMoUG7aVnrGTeqM7yxbyTD5p3F2+0/QUEh8Vzhw==","_resolved":"/private/var/folders/30/nymxcyb909ggq2j5lwn7b_600000gn/T/c323a0db6f999cafc9043521703d2fac/antfu-install-pkg-1.0.0.tgz","_from":"file:antfu-install-pkg-1.0.0.tgz","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"shasum":"2912a150fc8b35ec912f583f90074ee98f64d66a","size":3570,"noattachment":false,"key":"/@antfu/install-pkg/-/@antfu/install-pkg-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@antfu/install-pkg/download/@antfu/install-pkg-1.0.0.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/install-pkg_1.0.0_1736415943667_0.9967034568755286"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-09T09:45:43.879Z","publish_time":1736415943879,"_source_registry_name":"default","_cnpm_publish_time":1736415943879},"0.5.0":{"name":"@antfu/install-pkg","type":"module","version":"0.5.0","description":"Install package programmatically.","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/install-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/install-pkg.git"},"bugs":{"url":"https://github.com/antfu/install-pkg/issues"},"keywords":[],"sideEffects":false,"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","dependencies":{"package-manager-detector":"^0.2.5","tinyexec":"^0.3.1"},"devDependencies":{"@antfu/eslint-config":"^3.10.0","@antfu/ni":"^0.23.1","@types/node":"^22.10.0","bumpp":"^9.8.1","eslint":"^9.15.0","esno":"^4.8.0","publint":"^0.2.12","tsup":"^8.3.5","typescript":"^5.7.2"},"scripts":{"dev":"nr build --watch","start":"esno src/index.ts","build":"tsup src/index.ts --format cjs,esm --dts --no-splitting","release":"bumpp --commit --push --tag && pnpm publish","lint":"eslint ."},"_id":"@antfu/install-pkg@0.5.0","_integrity":"sha512-dKnk2xlAyC7rvTkpkHmu+Qy/2Zc3Vm/l8PtNyIOGDBtXPY3kThfU4ORNEp3V7SXw5XSOb+tOJaUYpfquPzL/Tg==","_resolved":"/private/var/folders/30/nymxcyb909ggq2j5lwn7b_600000gn/T/00d3e6de68b033677c57fe082b693765/antfu-install-pkg-0.5.0.tgz","_from":"file:antfu-install-pkg-0.5.0.tgz","_nodeVersion":"20.18.0","_npmVersion":"10.8.2","dist":{"shasum":"37357c16a962266c0a8811ee29b3ea1354d952d9","size":3575,"noattachment":false,"key":"/@antfu/install-pkg/-/@antfu/install-pkg-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@antfu/install-pkg/download/@antfu/install-pkg-0.5.0.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/install-pkg_0.5.0_1732675975297_0.05630188027132044"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-11-27T02:52:55.495Z","publish_time":1732675975495,"_source_registry_name":"default","_cnpm_publish_time":1732675975495},"0.4.1":{"name":"@antfu/install-pkg","type":"module","version":"0.4.1","description":"Install package programmatically.","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/install-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/install-pkg.git"},"bugs":{"url":"https://github.com/antfu/install-pkg/issues"},"keywords":[],"sideEffects":false,"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","dependencies":{"package-manager-detector":"^0.2.0","tinyexec":"^0.3.0"},"devDependencies":{"@antfu/eslint-config":"^2.27.2","@antfu/ni":"^0.22.4","@types/node":"^22.5.0","bumpp":"^9.5.2","eslint":"^9.9.1","esno":"^4.7.0","publint":"^0.2.10","tsup":"^8.2.4","typescript":"^5.5.4"},"scripts":{"dev":"nr build --watch","start":"esno src/index.ts","build":"tsup src/index.ts --format cjs,esm --dts --no-splitting","release":"bumpp --commit --push --tag && pnpm publish","lint":"eslint ."},"_id":"@antfu/install-pkg@0.4.1","_integrity":"sha512-T7yB5QNG29afhWVkVq7XeIMBa5U/vs9mX69YqayXypPRmYzUmzwnYltplHmPtZ4HPCn+sQKeXW8I47wCbuBOjw==","_resolved":"/private/var/folders/30/nymxcyb909ggq2j5lwn7b_600000gn/T/79f95b1be6c495fa74b7a87a26142c83/antfu-install-pkg-0.4.1.tgz","_from":"file:antfu-install-pkg-0.4.1.tgz","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"shasum":"d1d7f3be96ecdb41581629cafe8626d1748c0cf1","size":3434,"noattachment":false,"key":"/@antfu/install-pkg/-/@antfu/install-pkg-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@antfu/install-pkg/download/@antfu/install-pkg-0.4.1.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/install-pkg_0.4.1_1724690447005_0.06152669483451523"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-08-26T16:40:47.172Z","publish_time":1724690447172,"_source_registry_name":"default","_cnpm_publish_time":1724690447172},"0.4.0":{"name":"@antfu/install-pkg","type":"module","version":"0.4.0","description":"Install package programmatically.","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/install-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/install-pkg.git"},"bugs":{"url":"https://github.com/antfu/install-pkg/issues"},"keywords":[],"sideEffects":false,"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","dependencies":{"package-manager-detector":"^0.1.1","tinyexec":"^0.2.0"},"devDependencies":{"@antfu/eslint-config":"^2.26.0","@antfu/ni":"^0.22.4","@types/node":"^22.4.1","bumpp":"^9.5.1","eslint":"^9.9.0","esno":"^4.7.0","publint":"^0.2.10","tsup":"^8.2.4","typescript":"^5.5.4"},"scripts":{"dev":"nr build --watch","start":"esno src/index.ts","build":"tsup src/index.ts --format cjs,esm --dts --no-splitting","release":"bumpp --commit --push --tag && pnpm publish","lint":"eslint ."},"_id":"@antfu/install-pkg@0.4.0","_integrity":"sha512-vI73C0pFA9L+5v+djh0WSLXb8qYQGH5fX8nczaFe1OTI/8Fh03JS1Mov1V7urb6P3A2cBlBqZNjJIKv54+zVRw==","_resolved":"/private/var/folders/30/nymxcyb909ggq2j5lwn7b_600000gn/T/e5725bbf5bf3a3411412faa82bee344b/antfu-install-pkg-0.4.0.tgz","_from":"file:antfu-install-pkg-0.4.0.tgz","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"shasum":"9568f6f84f4ca7bb1e4ec36307f4c67d0b9b9ade","size":3406,"noattachment":false,"key":"/@antfu/install-pkg/-/@antfu/install-pkg-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@antfu/install-pkg/download/@antfu/install-pkg-0.4.0.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/install-pkg_0.4.0_1724185506147_0.41246107838711277"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-08-20T20:25:06.295Z","publish_time":1724185506295,"_source_registry_name":"default","_cnpm_publish_time":1724185506295},"0.3.5":{"name":"@antfu/install-pkg","type":"module","version":"0.3.5","description":"Install package programmatically.","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/install-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/install-pkg.git"},"bugs":{"url":"https://github.com/antfu/install-pkg/issues"},"keywords":[],"sideEffects":false,"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","dependencies":{"@jsdevtools/ez-spawn":"^3.0.4"},"devDependencies":{"@antfu/eslint-config":"^2.25.1","@antfu/ni":"^0.22.4","@types/node":"^22.3.0","bumpp":"^9.5.1","eslint":"^9.9.0","esno":"^4.7.0","find-up":"^7.0.0","publint":"^0.2.10","tsup":"^8.2.4","typescript":"^5.5.4"},"scripts":{"dev":"nr build --watch","start":"esno src/index.ts","build":"tsup src/index.ts --format cjs,esm --dts --no-splitting","release":"bumpp --commit --push --tag && pnpm publish","lint":"eslint ."},"_id":"@antfu/install-pkg@0.3.5","_integrity":"sha512-HwIACY0IzrM7FGafMbWZOqEDBSfCwPcylu+GacaRcxJm4Yvvuh3Dy2vZwqdJAzXponc6aLO9FaH4l75pq8/ZSA==","_resolved":"/private/var/folders/30/nymxcyb909ggq2j5lwn7b_600000gn/T/9493c2aceb92a55bfe91de908e5825a1/antfu-install-pkg-0.3.5.tgz","_from":"file:antfu-install-pkg-0.3.5.tgz","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"shasum":"f26e94520f877e6d508a5304fa8d740b49d0ef31","size":6146,"noattachment":false,"key":"/@antfu/install-pkg/-/@antfu/install-pkg-0.3.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@antfu/install-pkg/download/@antfu/install-pkg-0.3.5.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/install-pkg_0.3.5_1723727950702_0.9264635606181697"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-08-15T13:19:10.969Z","publish_time":1723727950969,"_source_registry_name":"default","_cnpm_publish_time":1723727950969},"0.3.4":{"name":"@antfu/install-pkg","type":"module","version":"0.3.4","description":"Install package programmatically.","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/install-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/install-pkg.git"},"bugs":{"url":"https://github.com/antfu/install-pkg/issues"},"keywords":[],"sideEffects":false,"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","dependencies":{"tinyexec":"^0.1.4"},"devDependencies":{"@antfu/eslint-config":"^2.25.1","@antfu/ni":"^0.22.1","@types/node":"^22.2.0","bumpp":"^9.4.2","eslint":"^9.9.0","esno":"^4.7.0","find-up":"^7.0.0","publint":"^0.2.9","tsup":"^8.2.4","typescript":"^5.5.4"},"scripts":{"dev":"nr build --watch","start":"esno src/index.ts","build":"tsup src/index.ts --format cjs,esm --dts --no-splitting","release":"bumpp --commit --push --tag && pnpm publish","lint":"eslint ."},"_id":"@antfu/install-pkg@0.3.4","_integrity":"sha512-xmYFuDsaS5hlqVSJYVIzBGnUBhZR6NpwelQx/qr9wHTenqMF14YhsexWADcFyMCKwf/vApnvLTfEEnaOBvo5SA==","_resolved":"/private/var/folders/30/nymxcyb909ggq2j5lwn7b_600000gn/T/d19598d1bb958ad739a9b7acddbe9005/antfu-install-pkg-0.3.4.tgz","_from":"file:antfu-install-pkg-0.3.4.tgz","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"shasum":"900a57614cb92ad2a1154eccec3891e8ed2b81b9","size":6125,"noattachment":false,"key":"/@antfu/install-pkg/-/@antfu/install-pkg-0.3.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@antfu/install-pkg/download/@antfu/install-pkg-0.3.4.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/install-pkg_0.3.4_1723458256883_0.3240343676130335"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-08-12T10:24:17.036Z","publish_time":1723458257036,"_source_registry_name":"default","_cnpm_publish_time":1723458257036},"0.3.3":{"name":"@antfu/install-pkg","type":"module","version":"0.3.3","description":"Install package programmatically.","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/install-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/install-pkg.git"},"bugs":{"url":"https://github.com/antfu/install-pkg/issues"},"keywords":[],"sideEffects":false,"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","dependencies":{"@jsdevtools/ez-spawn":"^3.0.4"},"devDependencies":{"@antfu/eslint-config":"^2.16.0","@antfu/ni":"^0.21.12","@types/node":"^20.12.7","bumpp":"^9.4.0","eslint":"^9.1.1","esno":"^4.7.0","find-up":"^7.0.0","publint":"^0.2.7","tsup":"^8.0.2","typescript":"^5.4.5"},"scripts":{"dev":"nr build --watch","start":"esno src/index.ts","build":"tsup src/index.ts --format cjs,esm --dts --no-splitting","release":"bumpp --commit --push --tag && pnpm publish","lint":"eslint ."},"_id":"@antfu/install-pkg@0.3.3","_integrity":"sha512-nHHsk3NXQ6xkCfiRRC8Nfrg8pU5kkr3P3Y9s9dKqiuRmBD0Yap7fymNDjGFKeWhZQHqqbCS5CfeMy9wtExM24w==","_resolved":"/private/var/folders/30/nymxcyb909ggq2j5lwn7b_600000gn/T/ee6169025fda76d09d9d3ad2aa605588/antfu-install-pkg-0.3.3.tgz","_from":"file:antfu-install-pkg-0.3.3.tgz","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"shasum":"34c3837132157e6ca23fe9587d1e174b0f33dc1a","size":6161,"noattachment":false,"key":"/@antfu/install-pkg/-/@antfu/install-pkg-0.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@antfu/install-pkg/download/@antfu/install-pkg-0.3.3.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/install-pkg_0.3.3_1714072063392_0.6218336043819441"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-04-25T19:07:43.554Z","publish_time":1714072063554,"_source_registry_name":"default","_cnpm_publish_time":1714072063554},"0.3.2":{"name":"@antfu/install-pkg","type":"module","version":"0.3.2","packageManager":"pnpm@8.15.5","description":"Install package programmatically.","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/install-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/install-pkg.git"},"bugs":{"url":"https://github.com/antfu/install-pkg/issues"},"keywords":[],"sideEffects":false,"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","dependencies":{"execa":"^8.0.1"},"devDependencies":{"@antfu/eslint-config":"^2.11.4","@antfu/ni":"^0.21.12","@types/node":"^20.11.30","bumpp":"^9.4.0","eslint":"^8.57.0","esno":"^4.7.0","find-up":"^7.0.0","publint":"^0.2.7","tsup":"^8.0.2","typescript":"^5.4.3"},"scripts":{"dev":"nr build --watch","start":"esno src/index.ts","build":"tsup src/index.ts --format cjs,esm --dts --no-splitting","release":"bumpp --commit --push --tag && pnpm publish","lint":"eslint ."},"_id":"@antfu/install-pkg@0.3.2","_integrity":"sha512-FFYqME8+UHlPnRlX/vn+8cTD4Wo/nG/lzRxpABs3XANBmdJdNImVz3QvjNAE/W3PSCNbG387FOz8o5WelnWOlg==","_resolved":"/private/var/folders/30/nymxcyb909ggq2j5lwn7b_600000gn/T/152d0d9365701dafef0a938b0d97a992/antfu-install-pkg-0.3.2.tgz","_from":"file:antfu-install-pkg-0.3.2.tgz","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"shasum":"f70edf4b54da8f0c36ddbc26cf58192a1368203e","size":6143,"noattachment":false,"key":"/@antfu/install-pkg/-/@antfu/install-pkg-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@antfu/install-pkg/download/@antfu/install-pkg-0.3.2.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/install-pkg_0.3.2_1711613619521_0.8896378317816351"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-28T08:13:39.688Z","publish_time":1711613619688,"_source_registry_name":"default","_cnpm_publish_time":1711613619688},"0.3.1":{"name":"@antfu/install-pkg","type":"module","version":"0.3.1","packageManager":"pnpm@8.11.0","description":"Install package programmatically.","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/install-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/install-pkg.git"},"bugs":{"url":"https://github.com/antfu/install-pkg/issues"},"keywords":[],"sideEffects":false,"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","dependencies":{"execa":"^8.0.1"},"devDependencies":{"@antfu/eslint-config":"^2.1.1","@antfu/ni":"^0.21.11","@types/node":"^20.10.0","bumpp":"^9.2.0","eslint":"^8.54.0","esno":"^4.0.0","find-up":"^7.0.0","publint":"^0.2.5","tsup":"^8.0.1","typescript":"^5.3.2"},"scripts":{"dev":"nr build --watch","start":"esno src/index.ts","build":"tsup src/index.ts --format cjs,esm --dts --no-splitting","release":"bumpp --commit --push --tag && pnpm publish","lint":"eslint ."},"_id":"@antfu/install-pkg@0.3.1","_integrity":"sha512-A3zWY9VeTPnxlMiZtsGHw2lSd3ghwvL8s9RiGOtqvDxhhFfZ781ynsGBa/iUnDJ5zBrmTFQrJDud3TGgRISaxw==","_resolved":"/private/var/folders/30/nymxcyb909ggq2j5lwn7b_600000gn/T/415a83b3824cf9f2b895aa40495bde40/antfu-install-pkg-0.3.1.tgz","_from":"file:antfu-install-pkg-0.3.1.tgz","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"shasum":"f63b3c98f92b455cd0929d4503eab276c9680943","size":5990,"noattachment":false,"key":"/@antfu/install-pkg/-/@antfu/install-pkg-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@antfu/install-pkg/download/@antfu/install-pkg-0.3.1.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/install-pkg_0.3.1_1701443871034_0.15241746602631623"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-01T15:17:51.196Z","publish_time":1701443871196,"_source_registry_name":"default","_cnpm_publish_time":1701443871196},"0.3.0":{"name":"@antfu/install-pkg","type":"module","version":"0.3.0","packageManager":"pnpm@8.11.0","description":"Install package programmatically.","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/install-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/install-pkg.git"},"bugs":{"url":"https://github.com/antfu/install-pkg/issues"},"keywords":[],"sideEffects":false,"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","dependencies":{"execa":"^8.0.1","find-up":"^7.0.0"},"devDependencies":{"@antfu/eslint-config":"^2.1.1","@antfu/ni":"^0.21.11","@types/node":"^20.10.0","bumpp":"^9.2.0","eslint":"^8.54.0","esno":"^4.0.0","publint":"^0.2.5","tsup":"^8.0.1","typescript":"^5.3.2"},"scripts":{"dev":"nr build --watch","start":"esno src/index.ts","build":"tsup src/index.ts --format cjs,esm --dts --no-splitting","release":"bumpp --commit --push --tag && pnpm publish","lint":"eslint ."},"_id":"@antfu/install-pkg@0.3.0","_integrity":"sha512-hzTVgEFGBBMXUjsNhIRDdt9jvAkZzPbMLQW8q2wXz455+1zxGFtM0nxPl2pukFWHXcC/Bn/UCHV9rd0+pwYsmw==","_resolved":"/private/var/folders/30/nymxcyb909ggq2j5lwn7b_600000gn/T/72ec6d9b1f2742f50d959f79b05c045c/antfu-install-pkg-0.3.0.tgz","_from":"file:antfu-install-pkg-0.3.0.tgz","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"shasum":"d60e3cac470222fe6bc00e30b14020dbd8cc0e9f","size":3694,"noattachment":false,"key":"/@antfu/install-pkg/-/@antfu/install-pkg-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@antfu/install-pkg/download/@antfu/install-pkg-0.3.0.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/install-pkg_0.3.0_1701095269640_0.6549792053963577"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-27T14:27:49.855Z","publish_time":1701095269855,"_source_registry_name":"default","_cnpm_publish_time":1701095269855},"0.2.0":{"name":"@antfu/install-pkg","type":"module","version":"0.2.0","packageManager":"pnpm@8.10.5","description":"Install package programmatically.","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/install-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/install-pkg.git"},"bugs":{"url":"https://github.com/antfu/install-pkg/issues"},"keywords":[],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"main":"dist/index.js","module":"dist/index.js","types":"dist/index.d.ts","dependencies":{"execa":"^8.0.1","find-up":"^7.0.0"},"devDependencies":{"@antfu/eslint-config":"^2.0.0","@antfu/ni":"^0.21.10","@types/node":"^20.9.3","bumpp":"^9.2.0","eslint":"^8.54.0","esno":"^4.0.0","tsup":"^8.0.1","typescript":"^5.3.2"},"scripts":{"dev":"nr build --watch","start":"esno src/index.ts","build":"tsup src/index.ts --format cjs,esm --dts --no-splitting","release":"bumpp --commit --push --tag && pnpm publish","lint":"eslint ."},"_id":"@antfu/install-pkg@0.2.0","_integrity":"sha512-gwTQbVnVcdhLXru+ejx2hZoiVcOHBJtjWXxzQmwSt5NePDr2mlVmdxuV1BapjN1JNb5OmA0j860bsQN3iHXr8Q==","_resolved":"/private/var/folders/30/nymxcyb909ggq2j5lwn7b_600000gn/T/b3ce29dfe72feddbc9f14b14cac34b35/antfu-install-pkg-0.2.0.tgz","_from":"file:antfu-install-pkg-0.2.0.tgz","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"shasum":"16100caa5f98aaeaf22191697c849c9ff351426b","size":3670,"noattachment":false,"key":"/@antfu/install-pkg/-/@antfu/install-pkg-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@antfu/install-pkg/download/@antfu/install-pkg-0.2.0.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/install-pkg_0.2.0_1700593829159_0.4568355739492327"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-21T19:10:29.386Z","publish_time":1700593829386,"_source_registry_name":"default","_cnpm_publish_time":1700593829386},"0.1.1":{"name":"@antfu/install-pkg","version":"0.1.1","packageManager":"pnpm@7.12.0","description":"Install package programmatically.","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/install-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/install-pkg.git"},"bugs":{"url":"https://github.com/antfu/install-pkg/issues"},"keywords":[],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","require":"./dist/index.js","import":"./dist/index.mjs"}},"main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","dependencies":{"execa":"^5.1.1","find-up":"^5.0.0"},"devDependencies":{"@antfu/eslint-config":"^0.27.0","@antfu/ni":"^0.18.0","@types/node":"^16.11.59","bumpp":"^8.2.1","eslint":"^8.23.1","esno":"^0.16.3","tsup":"^6.2.3","typescript":"^4.8.3"},"scripts":{"dev":"nr build --watch","start":"esno src/index.ts","build":"tsup src/index.ts --format cjs,esm --dts --no-splitting","release":"bumpp --commit --push --tag && pnpm publish","lint":"eslint ."},"_id":"@antfu/install-pkg@0.1.1","_integrity":"sha512-LyB/8+bSfa0DFGC06zpCEfs89/XoWZwws5ygEa5D+Xsm3OfI+aXQ86VgVG7Acyef+rSZ5HE7J8rrxzrQeM3PjQ==","_resolved":"/private/var/folders/30/nymxcyb909ggq2j5lwn7b_600000gn/T/9be30e44eccfcddef5ba4da5344b7341/antfu-install-pkg-0.1.1.tgz","_from":"file:antfu-install-pkg-0.1.1.tgz","_nodeVersion":"16.14.2","_npmVersion":"8.8.0","dist":{"shasum":"157bb04f0de8100b9e4c01734db1a6c77e98bbb5","size":3447,"noattachment":false,"key":"/@antfu/install-pkg/-/@antfu/install-pkg-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@antfu/install-pkg/download/@antfu/install-pkg-0.1.1.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/install-pkg_0.1.1_1663728282634_0.6109329811986635"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-21T02:50:06.627Z","publish_time":1663728282820,"_cnpm_publish_time":1663728282820},"0.1.0":{"name":"@antfu/install-pkg","version":"0.1.0","description":"Install package programmatically.","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs"}},"funding":{"url":"https://github.com/sponsors/antfu"},"author":"Anthony Fu <anthonyfu117@hotmail.com>","license":"MIT","sideEffects":false,"bugs":{"url":"https://github.com/antfu/install-pkg/issues"},"homepage":"https://github.com/antfu/install-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/install-pkg.git"},"keywords":[],"devDependencies":{"@antfu/eslint-config":"^0.7.0","@antfu/ni":"^0.7.0","@types/node":"^16.10.1","bumpp":"^7.1.1","eslint":"^7.32.0","esno":"^0.9.1","tsup":"^4.14.0","typescript":"^4.4.3"},"dependencies":{"execa":"^5.1.1","find-up":"^5.0.0"},"scripts":{"dev":"nr build --watch","start":"esno src/index.ts","build":"tsup src/index.ts --format cjs,esm --dts --no-splitting","release":"bumpp --commit --push --tag && pnpm publish","lint":"eslint \"{src,test}/**/*.ts\"","lint:fix":"nr lint -- --fix"},"_id":"@antfu/install-pkg@0.1.0","_integrity":"sha512-VaIJd3d1o7irZfK1U0nvBsHMyjkuyMP3HKYVV53z8DKyulkHKmjhhtccXO51WSPeeSHIeoJEoNOKavYpS7jkZw==","_resolved":"/Users/antfu/i/install-pkg/antfu-install-pkg-0.1.0.tgz","_from":"file:antfu-install-pkg-0.1.0.tgz","_nodeVersion":"16.6.2","_npmVersion":"7.20.3","dist":{"shasum":"8d8c61820cbc32e5c37d82d515485ad3ee9bd052","size":2966,"noattachment":false,"key":"/@antfu/install-pkg/-/@antfu/install-pkg-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@antfu/install-pkg/download/@antfu/install-pkg-0.1.0.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/install-pkg_0.1.0_1633136512077_0.7395411616073324"},"_hasShrinkwrap":false,"publish_time":1633136512272,"_cnpm_publish_time":1633136512272},"0.0.0":{"name":"@antfu/install-pkg","version":"0.0.0","description":"Install package programmatically.","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs"}},"funding":"https://github.com/sponsors/antfu","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","sideEffects":false,"bugs":{"url":"https://github.com/antfu/install-pkg/issues"},"homepage":"https://github.com/antfu/install-pkg#readme","repository":{"type":"git","url":"git+https://github.com/antfu/install-pkg.git"},"keywords":[],"scripts":{"prepublishOnly":"nr build","dev":"nr build --watch","start":"esno src/index.ts","build":"tsup src/index.ts --format cjs,esm --dts --no-splitting","release":"bumpp --commit --push --tag && pnpm publish","lint":"eslint \"{src,test}/**/*.ts\"","lint:fix":"nr lint -- --fix"},"devDependencies":{"@antfu/eslint-config":"^0.7.0","@antfu/ni":"^0.7.0","@types/node":"^16.10.1","bumpp":"^7.1.1","eslint":"^7.32.0","esno":"^0.9.1","tsup":"^4.14.0","typescript":"^4.4.3"},"dependencies":{"execa":"^5.1.1","find-up":"^5.0.0"},"gitHead":"250d14c85acbcc7914a06d80f942587539a569f4","_id":"@antfu/install-pkg@0.0.0","_nodeVersion":"16.6.2","_npmVersion":"7.20.3","dist":{"shasum":"0a1ab32209e37bdcd291009d20193ea606c084de","size":2888,"noattachment":false,"key":"/@antfu/install-pkg/-/@antfu/install-pkg-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@antfu/install-pkg/download/@antfu/install-pkg-0.0.0.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/install-pkg_0.0.0_1632804969625_0.976983312658841"},"_hasShrinkwrap":false,"publish_time":1632804969769,"_cnpm_publish_time":1632804969769}},"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'/>\n  </a>\n</p>\n\n## License\n\n[MIT](./LICENSE) License © 2021 [Anthony Fu](https://github.com/antfu)\n","_attachments":{},"homepage":"https://github.com/antfu/install-pkg#readme","bugs":{"url":"https://github.com/antfu/install-pkg/issues"},"license":"MIT"}