Panam Core API provides a programmatic way to interact with package managers through a unified and efficient interface. Designed for flexibility and extensibility, the Core API eliminates the need to manually adapt to various package manager commands, enabling seamless development workflows.
Install the Core API as a standalone package:
-
With
npm
:npm install panam
-
With
yarn
:yarn add panam
-
With
pnpm
:pnpm add panam
Start by importing Panam Core API into your project:
import pnm from 'panam';
Use the unified API to execute commands across various package managers:
await pnm.install();
await pnm.add('lodash');
await pnm.remove('lodash');
await pnm.run('build');
await pnm.exec('eslint .');
await pnm.dlx('create-react-app my-app');
-
install()
: Installs all dependencies in the current project. -
add(...packages: string[])
: Adds specified packages to the project. -
remove(...packages: string[])
: Removes specified packages from the project. -
run(script: string)
: Runs a script defined in the project'spackage.json
. -
exec(command: string)
: Executes a specific command using the detected package manager. -
dlx(binary: string)
: Runs a package as a one-time executable.
- Cross-runtime compatibility: Unified API
for
npm
,pnpm
,yarn
,bun
,deno
, and more. - Simplified workflows: Consistent commands across package managers.
- Extensibility: Easily extendable to support new tools and managers.
For detailed documentation, visit the Panam website.
Licensed under the MIT License. Created with โค๏ธ by Sigui Kessรฉ Emmanuel.