0.1.0 • Published 6 years ago

github-api-cli v0.1.0

Weekly downloads
1
License
MPL-2.0
Repository
github
Last release
6 years ago

github-api-cli

A read-only CLI tool for fetching github resources from Github REST v3 API and writing them stdout as JSON.

To install:

npm install -g github-api-cli

usage

Fetches and merges all pages of code.search while obeying rate limits:

github-api-cli get search code q='filename:package.json org:g-k' per_page=100

Optionally uses a Github PAT provided as the env var GITHUB_TOKEN to authenticate:

GITHUB_TOKEN=mypat github-api-cli get search code q='filename:package.json org:g-k'