UNPKG

pkg-installer

Version:

Install package programmatically.

20 lines (13 loc) 477 B
# pkg-installer [![NPM version](https://img.shields.io/npm/v/pkg-installer?color=a1b858)](https://www.npmjs.com/package/pkg-installer) Install package programmatically. Detect package managers automatically (npm, yarn, bun and pnpm). ## 🦄️ Usage ```bash npm i pkg-installer ``` ```ts import { installPackage } from 'pkg-installer' await installPackage('vite', { silent: true }) ``` ## License [MIT](./LICENSE) License © 2023 [Joruno-w](https://github.com/Joruno-w)