5.0.0 • Published 1 year ago

fetch-gists v5.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
1 year ago

fetch-gists

Version Build Status Coveralls npm License

Fetch all of your gists from GitHub.

fetch-gists will handle all of the API calls needed to retrieve all of your gists from GitHub. This includes navigating the paginated results.

Prerequisites

  • GitHub account (duh!)
  • GitHub access token with the gist scope enabled

Installation

npm install --save fetch-gists

Usage

const fetchGists = require('fetch-gists')

const accessToken = '<your-github-access-token>'

try {
  const gists = await fetchGists(accessToken)

  // gists successfully retrieved
} catch (err) {
  // something went wrong
}

fetchGists will return a promise. The promise will resolve once all gists for the account have been retrieved. Any errors that occur during the retrieval of the gists will cause the promise to reject.

5.0.0

1 year ago

4.0.0

3 years ago

3.0.0

5 years ago

2.0.0

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago