Skip to content

Latest commit

ย 

History

History
128 lines (81 loc) ยท 2.25 KB

README.md

File metadata and controls

128 lines (81 loc) ยท 2.25 KB

๐ŸŽ‰ Panam Core API

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.


๐Ÿš€ Installation

Install the Core API as a standalone package:

  • With npm:

    npm install panam
  • With yarn:

    yarn add panam
  • With pnpm:

    pnpm add panam

๐Ÿ› ๏ธ Usage

Importing the API

Start by importing Panam Core API into your project:

import pnm from 'panam';

Run Commands

Use the unified API to execute commands across various package managers:

Install dependencies

await pnm.install();

Add a package

await pnm.add('lodash');

Remove a package

await pnm.remove('lodash');

Run a script

await pnm.run('build');

Execute a tool

await pnm.exec('eslint .');

Use dlx to execute temporary tools

await pnm.dlx('create-react-app my-app');

๐Ÿ“– API Reference

Methods

  • 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's package.json.

  • exec(command: string): Executes a specific command using the detected package manager.

  • dlx(binary: string): Runs a package as a one-time executable.


๐ŸŒŸ Features

  • 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.

๐Ÿ“š Documentation

For detailed documentation, visit the Panam website.


๐Ÿ›ก๏ธ License

Licensed under the MIT License. Created with โค๏ธ by Sigui Kessรฉ Emmanuel.