Get all gists from a GitHub user
$ npm install --save github-gists
var githubGists = require('github-gists');
githubGists('johndoe', function (err, data) {
console.log(data);
//=> [{url: https://api.github.com/gists/1234567', ...}, ...]
});
Required
Type: string
Username to fetch gists from.
Type: string
Token to authenticate with. Use this to increase the request count. GitHub supports up to 60 unauthenticated request per hour.
If you don't have a token you can generate a new one here.
Type: function
Type: array
Contains an array with all GitHub gists.
$ npm install --global github-gists
$ github-gists --help
Usage
$ github-gists kevva
$ github-gists kevva --token 523ef69119eadg12
Options
-t, --token GitHub authentication token
MIT © Kevin Mårtensson