Socket
Book a DemoInstallSign in
Socket

github-gists

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-gists

Get all gists from a GitHub user

Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

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

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.

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

Keywords

api

FAQs

Package last updated on 06 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts