An extension for displaying dependencies for different package managers on GitHub
- Npm.
- Composer.
- Pip.
- Cargo.
- Yarn.
Why build this? We already have npmhub?
npmhub is great, but why should npm have all the fun? I wanted to see if I could implement something similar while making it easy to add support for other package managers. Also, to make it more fun, I decided to accomplish this without any fancy libraries (jQuery) or apis (fetch). So, packagehub should have support for most browsers in use today.
- npmhub - inspired the idea for this extension.
Install extension from Chrome Web Store
- Clone this repo.
- Go to chrome extensions chrome://extensions.
- Enable developer mode.
- Click on load unpacked extension and select the source folder of this cloned repo.
To add support for a new package manager
- Add a new config entry with the relevant details. The registry in the config should be one of the supported ones in Libraries.io
- Add a new parser if the package manager dependencies are not specified in one of the already existing formats (JSON, TOML, etc.).
Thanks to Libraries.io for providing an excellent api with returns just the right amount of data to make this extension useful without being wasteful.
MIT © Ezinwa Okpoechi