Skip to content

yoCruzer/github-gists

 
 

Repository files navigation

github-gists Build Status

Get all gists from a GitHub user

Install

$ npm install --save github-gists

Usage

var githubGists = require('github-gists');

githubGists('johndoe', function (err, data) {
	console.log(data);
	//=> [{url: https://api.github.com/gists/1234567', ...}, ...]
});

API

githubGists(user, [options], callback)

user

Required
Type: string

Username to fetch gists from.

options.token

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.

callback(err, data)

Type: function

data

Type: array

Contains an array with all GitHub gists.

CLI

$ npm install --global github-gists
$ github-gists --help

  Usage
    $ github-gists kevva
    $ github-gists kevva --token 523ef69119eadg12

  Options
    -t, --token    GitHub authentication token

License

MIT © Kevin Mårtensson

About

Get all gists from a GitHub user

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%