https://github.com/Intevel/qpind
📦 Quick programmatically install npm dependencies
https://github.com/Intevel/qpind
Last synced: 12 months ago
JSON representation
📦 Quick programmatically install npm dependencies
- Host: GitHub
- URL: https://github.com/Intevel/qpind
- Owner: Intevel
- License: mit
- Archived: true
- Created: 2022-04-03T09:28:47.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-06T19:02:02.000Z (over 3 years ago)
- Last Synced: 2025-07-14T20:41:47.505Z (12 months ago)
- Language: TypeScript
- Homepage:
- Size: 84 KB
- Stars: 15
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# qpind
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Github Actions CI][github-actions-ci-src]][github-actions-ci-href]
[![License][license-src]][license-href]
Install dependecies quick & programmatically 📦
![]()
⚠️ This project is archived ⚠️
Use antfu/install-pkg instead
## Install
```sh
# Using npm:
npm install qpind
# Using yarn:
yarn add qpind
```
## Usage
### `installPackage(packages, fallbackToNpm?, packageManager?, cwd?)`
Install dependencies in your root directory, if no package manager is defined it will try to detect one of the following:
- yarn
- npm
- pnpm
```js
// CommonJS
const { installPackage } = require("qpind");
// ESM
import { installPackage } from "qpind";
installPackage("package-name");
```
### `detectPackageManager(fallbackToNpm?, cwd?)`
Detect the current Package Manager in the directory
```js
const { detectPackageManager } = require("qpind");
var packeManager = detectPackageManager();
// -> yarn || npm || pnpm
```
## License
MIT - Made with ❤️ by Conner Luka Bachmann
[npm-version-src]: https://img.shields.io/npm/v/qpind/latest.svg
[npm-version-href]: https://npmjs.com/package/qpind
[npm-downloads-src]: https://img.shields.io/npm/dt/qpind.svg
[npm-downloads-href]: https://npmjs.com/package/qpind
[github-actions-ci-src]: https://github.com/intevel/qpind/actions/workflows/ci.yml/badge.svg
[github-actions-ci-href]: https://github.com/intevel/qpind/actions?query=workflow%3Aci
[license-src]: https://img.shields.io/npm/l/qpind.svg
[license-href]: https://npmjs.com/package/qpind