Don't worry about which package manager to use anymore.
As a frontend developer, hopping between projects with different package managers like npm, yarn, pnpm, and bun can be a real headache. That's where pm steps in—your all-in-one solution for managing packages without the fuss.
pm automatically detects the package manager your project uses and runs the right commands, so you don't have to keep track of each one's quirks. Just sit back, relax, and let pm do the heavy lifting!
- Auto-Detects Package Manager: No more hunting for lock files or guessing. Just type your command, and pm will figure it out.
- Unified Commands: Whether you want to install, add, remove, or upgrade, pm translates your command into the right package manager lingo.
- Supports All Your Faves: Compatible with
npm,yarn,pnpm, andbun. Justpmiand let the magic happen.
Installation:
# npm
npm install -g unickowl/pm
# yarn
yarn global add unickowl/pm
# pnpm
pnpm install -g unickowl/pm
# bun
bun install -g unickowl/pmUninstallation:
# npm
npm uninstall -g pm
# yarn
yarn global remove pm
# pnpm
pnpm uninstall -g pm
# bun
bun remove -g pmBasic Usage:
pmi # Works like `npm install`, `yarn`, etc.
pmi vue # Installs vue with the correct pm
pmr dev # Runs the dev script with the correct pmScripts:
pmi lodash
pmi -D eslintpmuni lodashpmu lodashpmr devpmx cypress openpma
# Output: Current package manager: bunOr you could just use ni, this is my practice one. 😅

