Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)