Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kubk/github-package-links

A userscript for GitHub that turns dependencies in package.json, composer.json, Gemfile into clickable links
https://github.com/kubk/github-package-links

browser-extension github gitlab userscript

Last synced: 6 days ago
JSON representation

A userscript for GitHub that turns dependencies in package.json, composer.json, Gemfile into clickable links

Awesome Lists containing this project

README

        

# github-package-links [![Build Status](https://travis-ci.org/kubk/github-package-links.svg?branch=master)](https://travis-ci.org/kubk/github-package-links) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

A userscript that generates links for packages in dependency files like package.json, composer.json, Gemfile on GitHub. Inspired by GitLab.

### Supported files
- `package.json` / `bower.json` (JavaScript)
- `composer.json` (PHP)
- `Gemfile` / `gems.rb` (Ruby)
- `requirements.txt` (Python)
- `Gopkg.toml` (Go)

### Requirements
- [Tampermonkey](https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en) for Google Chrome or [Greasemonkey](https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/) for Firefox

### Quick installation
- Click [here](https://github.com/kubk/github-package-links/raw/build/script.user.js) if you have Tampermonkey or Greasemonkey installed.

### Manual installation
You can inspect the code and build a userscript manually from source:
1. `npm run build:prod`
2. Generate userscript: `cat userscript/userscript-header.txt dist/bundle.js > script.user.js`

### Development
1. `npm run build:dev && npm run build-userscript`

### Tests
Run `npm run test`