Skip to content

unickowl/pm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pm - The Universal Package Manager Wrapper

CleanShot 2024-08-01 at 16 44 49 image

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!

What Can pm Do for You?

  • 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, and bun. Just pmi and let the magic happen.

Getting Started

Installation:

# npm
npm install -g unickowl/pm

# yarn
yarn global add unickowl/pm

# pnpm
pnpm install -g unickowl/pm

# bun
bun install -g unickowl/pm

Uninstallation:

# npm
npm uninstall -g pm

# yarn
yarn global remove pm

# pnpm
pnpm uninstall -g pm

# bun
bun remove -g pm

Basic 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 pm

Scripts:

pmi: Install packages

pmi lodash
pmi -D eslint

pmuni: Uninstall packages

pmuni lodash

pmu: Update packages

pmu lodash

pmr: Run scripts

pmr dev

pmx: Execute commands

pmx cypress open

pma: Show current package manager

pma

# Output: Current package manager: bun

Or you could just use ni, this is my practice one. 😅

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published