Skip to content

mshima/which-package-manager

Repository files navigation

which-package-manager

Detects the current package manager. Rules applied in order:

  • Lock file existence.
  • package.json structure compatibility.
  • packageManager field.
  • First compatible passed preferred package manager.

Usage

npm install which-package-manager
import { whichPackageManager } from 'which-package-manager';

const packageManager = await whichPackageManager();

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors