qpind
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

qpind

npm version npm downloads Github Actions CI License

Install dependecies quick & programmatically 📦

Install

# 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
// CommonJS
const { installPackage } = require("qpind");

// ESM
import { installPackage } from "qpind";

installPackage("package-name");

detectPackageManager(fallbackToNpm?, cwd?)

Detect the current Package Manager in the directory

const { detectPackageManager } = require("qpind");

var packeManager = detectPackageManager();
// -> yarn || npm || pnpm

License

MIT - Made with ❤️ by Conner Luka Bachmann

Readme

Keywords

none

Package Sidebar

Install

npm i qpind

Weekly Downloads

1

Version

1.2.0

License

MIT

Unpacked Size

6.79 kB

Total Files

5

Last publish

Collaborators

  • intevel