Coder Social home page Coder Social logo

fetch-gists's Introduction

⚠️ This project is no longer maintained

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.

fetch-gists's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar greenkeeper[bot] avatar greenkeeperio-bot avatar mike182uk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ada-lovecraft

fetch-gists's Issues

Fetch gists for specified username

It could be useful to be able to fetch another users public gists:

fetchGists(accessToken, 'mike182uk')
  .then(function(gists) {
    // ...
  });

An in-range update of nock is breaking the build 🚨

The devDependency nock was updated from 10.0.0 to 10.0.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

nock is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • coverage/coveralls: Coverage pending from Coveralls.io (Details).
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for v10.0.1

10.0.1 (2018-10-09)

Bug Fixes

  • package: update debug to version 4.1.0 (0c807c9), closes #1214
Commits

The new version differs by 12 commits.

  • 3131313 Merge pull request #1238 from nock/greenkeeper/debug-4.1.0
  • 0c807c9 fix(package): update debug to version 4.1.0
  • 539d244 test: add comments to all tests that use airplane setting (#1237)
  • e226c65 docs: clean up debugging section
  • 7e70d9a docs: Delete sections duplicated in CONTRIBUTING
  • 43cf093 docs: move PROTIP elsewhere
  • 7498574 docs: remove empty spaces
  • 6b632d5 Merge pull request #1225 from nock/node-version-support
  • 8592632 ci(stale): set number of actions to 30 (default)
  • cbd2670 docs(README): Node version support
  • e6d885f ci(travis): coverage upload
  • f12cda7 ci(package): coverage

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Fetch gist content

It could be useful to retrieve the gist content when fetching the gists (from the raw_url property of the file in the gist). This would reduce the need to manually make an extra http request to get the gist content.

var fetchGistContent = true;

fetchGists(accessToken, fetchGistContent)
  .then(function(gists) {
    // gists should have an extra parameter containing the content of the gist
  });

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.