Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antfu/install-pkg
Install package programmatically.
https://github.com/antfu/install-pkg
Last synced: 3 months ago
JSON representation
Install package programmatically.
- Host: GitHub
- URL: https://github.com/antfu/install-pkg
- Owner: antfu
- License: mit
- Created: 2021-09-28T04:41:34.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-15T13:19:08.000Z (3 months ago)
- Last Synced: 2024-08-16T14:29:32.332Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 351 KB
- Stars: 155
- Watchers: 3
- Forks: 16
- Open Issues: 1
-
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)