https://github.com/pengzhanbo/install-pkg
https://github.com/pengzhanbo/install-pkg
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/pengzhanbo/install-pkg
- Owner: pengzhanbo
- License: mit
- Created: 2023-12-08T07:46:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-14T12:39:37.000Z (over 1 year ago)
- Last Synced: 2025-03-13T19:21:22.616Z (about 2 months ago)
- Language: TypeScript
- Size: 45.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# install-pkg
Install package programmatically. Detect package managers automatically (npm, yarn, bun and pnpm).
## Install
```sh
npm install @pengzhanbo/install-pkg
# or
pnpm add @pengzhanbo/install-pkg
```## Usage
```ts
import installPkg from '@pengzhanbo/install-pkg'installPkg('your-package-name', { dev: true })
```## LICENSE
MIT