devenbansod / findall-pkg-mgr

Finds all package managers for JS-ecosystem installed

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

findall-pkg-mgr

It finds all package-managers installed in the system. It finds them without requiring any external dependency.

Why?

Well, sometimes you might want to install dependencies dynamically based on the package-managers. Some folks prefer yarn over npm.

Supported Packages

  1. npm
  2. yarn

How to

  1. installation:
npm install --save findall-pkg-mgr
  1. Use as a module
const findAll = require("findall-pkg-mgr");
const pkg_mgrs = findAll();

console.log(pkg_mgrs); // [ 'npm', 'yarn' ]

About

Finds all package managers for JS-ecosystem installed

License:MIT License


Languages

Language:JavaScript 100.0%