Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antfu-collective/install-pkg
Install package programmatically.
https://github.com/antfu-collective/install-pkg
Last synced: 2 months ago
JSON representation
Install package programmatically.
- Host: GitHub
- URL: https://github.com/antfu-collective/install-pkg
- Owner: antfu-collective
- License: mit
- Created: 2021-09-28T04:41:34.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-29T13:36:15.000Z (2 months ago)
- Last Synced: 2024-08-29T15:04:47.103Z (2 months ago)
- Language: TypeScript
- Homepage:
- Size: 583 KB
- Stars: 168
- Watchers: 3
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# install-pkg
[![NPM version](https://img.shields.io/npm/v/@antfu/install-pkg?color=a1b858&label=)](https://www.npmjs.com/package/@antfu/install-pkg)
Install package programmatically. Detect package managers automatically (`npm`, `yarn`, `bun` and `pnpm`).
```bash
npm i @antfu/install-pkg
``````ts
import { installPackage } from '@antfu/install-pkg'await installPackage('vite', { silent: true })
```## Sponsors
## License
[MIT](./LICENSE) License © 2021 [Anthony Fu](https://github.com/antfu)