Skip to content

kevva/github-gists

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-gists Build Status

Get all gists from a GitHub user

Install

$ npm install --save github-gists

Usage

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

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

API

githubGists(user, [options])

user

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.

Related

License

MIT © Kevin Mårtensson

About

Get all gists from a GitHub user

Resources

License

Stars

Watchers

Forks

Packages

No packages published