Returns the github repository url for the requested package.
The supported registries are:
- npmjs.com
- bower.io
- getcomposer.org
- rubygems.org
- pypi.python.org
- crates.io
- melpa.org
- pub.dev
- nuget.org
Example:
[POST] https://octolinker-api.now.sh/
Body:
[
{ "type": "npm", "target": "react" },
{ "type": "composer", "target": "phpunit/phpunit" },
{ "type": "ping", "target": "https://github.com" },
{ "type": "npm", "target": "unknown-package" }
]
or as
[GET] https://octolinker-api.now.sh/?npm=react,lodash&composer=phpunit/phpunit
Type must be one of:
npm
bower
composer
rubygems
pypi
crates
java
go
pub
cran
nuget
ping
Response:
{
"result": [
{
"type": "npm",
"target": "react",
"result": "https://github.com/facebook/react"
},
{
"type": "composer",
"target": "phpunit/phpunit",
"result": "https://github.com/sebastianbergmann/phpunit"
},
{
"type": "ping",
"target": "https://github.com",
"result": "https://github.com"
},
{
"type": "npm",
"target": "unknown-package"
}
]
}
Install dependencies:
npm install
Run server:
npm run dev
npm test
Our Privacy Policy describes our practices related to the use, storage and disclosure of information we collect when you're using our service.
Copyright (c) 2015–present Stefan Buck and other contributors. Licensed under the MIT license.