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

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
1
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

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.

  • github-gists-cli - CLI for this module

License

MIT © Kevin Mårtensson

Keywords

api

FAQs

Package last updated on 12 Sep 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