Skip to content

A small wrapper around npm, yarn and pnpm to make jumping between projects with different managers a little easier

License

Notifications You must be signed in to change notification settings

cameronolivier/agnostic-package-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agnostic Package Manager

A small wrapper around npm, yarn and pnpm to make jumping between projects with different managers a little easier

WARNING: This is super alpha and hasn't been battle tested at all.

Setup:

To setup, clone this repo and then run

npm run init

This will make the cli script executable and add the apm command to your path (via npm link).

Usage:

To use this tool, simply replace the specific package manager command with this agnostic one.

To see the command mappings, run apm --help.

Example:

To add react, in an npm project you might run:

npm install react

Or in yarn:

yarn add react

In apm, run:

apm add react

and it'll see what package manager you're running in your project and execute the correct command.

Aliases:

APR: Agnostic Package Runner

Running apr <command> is the same as running apm run <command>

APX: Agnostic Package Executor

Running apx <command> is the same as running apm dlx <command>

About

A small wrapper around npm, yarn and pnpm to make jumping between projects with different managers a little easier

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors