JSON HTTP API for retrieving a package.json
file from GitHub (and potentially other sources).
Path params:
:service
- the service hosting the repo that contains thepackage.json
. Currently only GitHub is supported ("gh").:owner
- user or organisation name that owns the repo.:repo
- repository name where thepackage.json
lives.
Query params:
path
- path to thepackage.json
file from the root of the repo (if not at root).ref
- commitish or branch/tag name.
Response:
The package.json
contents.