This is a browser extension that allows you to customize the npm install
command on npmjs.com
- Override the default
npm install
script. - Use multiple package managers (npm, yarn, pnpm, bun or a custom command)
- Super lightweight and easy to use.
Donations are greatly appreciated and help me to keep this project alive.
Available on major browsers:
Do not forget to rate the extension !! Helps a ton to get more visibility and feedback.
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
To start the development server, run:
## Defaults to chrome
bun dev
If you want to contribute to this project, feel free to open an issue or a pull request.
-
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