Skip to content

Finds all package managers for JS-ecosystem installed

License

Notifications You must be signed in to change notification settings

hemal7735/findall-pkg-mgr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

findall-pkg-mgr Build Status codecov

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 findPkgMngr = require('findall-pkg-mgr');

// Find all available package managers
const pkg_mgrs = findPkgMngr.findAll();
console.log(pkg_mgrs); // [ 'npm', 'yarn' ]

// Check if a specific package manager is available
const isNpmAvailable = findPkgMngr.isAvailable('npm');
console.log(isNpmAvailable); // true

const isYarnAvailable = findPkgMngr.isAvailable('yarn');
console.log(isYarnAvailable); // false

About

Finds all package managers for JS-ecosystem installed

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published