0.0.2 • Published 8 years ago
github-curl v0.0.2
Install
npm install -g github-curl
Usage
github-curl
usage: github-curl [options] url
options same as curl options
url - https://api.github.com/<path>
$ github-curl https://api.github.com/ # test
$ github-curl -D /dev/null https://api.github.com/ # body (json) only
$ github-curl -o /dev/null https://api.github.com/ # headers only
+2 additional scripts (with same syntax):
- github-curl-headers - headers only
- github-curl-body - body (json) only
~/.githubtoken required
Sources:
Links
- cURL man page - curl.haxx.se/docs/manpage.html
- Creating an access token - help.github.com/articles/creating-an-access-token-for-command-line-use/
- GitHub API - developer.github.com/v3/
0.0.2
8 years ago