8000 GitHub - uncor3/alt-pkg: A free and open-source extension to change the default install command on npmjs.com
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

uncor3/alt-pkg

Repository files navigation

AltPkg showcase
AltPkg

What is this?

This is a browser extension that allows you to customize the npm install command on npmjs.com

AltPkg showcase

Check out a 2 min video covering the project

Features

  • Override the default npm install script.
  • Use multiple package managers (npm, yarn, pnpm, bun or a custom command)
  • Super lightweight and easy to use.

Please consider donating

Donations are greatly appreciated and help me to keep this project alive.

Click here to donate

Installation

Available on major browsers:



Do not forget to rate the extension !! Helps a ton to get more visibility and feedback.

Build from source:

This extension is built using WXT, a lightweight framework for building browser extensions. To build the extension from source, follow these steps:

# Clone the repository
git clone https://github.com/uncor3/alt-pkg.git
cd alt-pkg
# Install dependencies
bun install
# Build the extension
# Will default to chrome if no argument is provided
bun run build

Then on your browser, go to the extensions page and enable developer mode. Click on "Load unpacked" and select the correct browser folder from .output folder inside the cloned repository.

You can also build the extension for a specific browser by providing the browser name as an argument:

# Build for Firefox
bun wxt build -b firefox

Development

To start the development server, run:

## Defaults to chrome
bun dev

Contributing

If you want to contribute to this project, feel free to open an issue or a pull request.

Things that this project needs:

  • Tests for the extension, currently there are no tests for the extension.

  • A workflow to push the extension to the Chrome Web Store and Firefox Add-ons and etc

  • A workflow for versioning and making releases

  • Content script can be optimized more to avoid layout shifts

  • There is currently no way to edit a custom command after it has been added. It can only be deleted

About

A free and open-source extension to change the default install command on npmjs.com

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0