Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevva/github-gists
Get all gists from a GitHub user
https://github.com/kevva/github-gists
Last synced: about 2 months ago
JSON representation
Get all gists from a GitHub user
- Host: GitHub
- URL: https://github.com/kevva/github-gists
- Owner: kevva
- License: mit
- Created: 2015-05-12T15:07:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-12T16:10:52.000Z (over 8 years ago)
- Last Synced: 2024-10-12T01:06:36.982Z (2 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 46
- Watchers: 10
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- jimsghstars - kevva/github-gists - Get all gists from a GitHub user (JavaScript)
README
# github-gists [![Build Status](https://travis-ci.org/kevva/github-gists.svg?branch=master)](https://travis-ci.org/kevva/github-gists)
> Get all gists from a GitHub user
## Install
```
$ npm install --save github-gists
```## Usage
```js
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](https://github.com/settings/tokens/new).
## Related
* [github-gists-cli](https://github.com/kevva/github-gists-cli) - CLI for this module
## License
MIT © [Kevin Mårtensson](https://github.com/kevva)