Wrapper for the GitHub Gists API v3


A node.js wrapper for the GitHub Gists API v3.

$ npm install gisty
var Gisty = require('gisty');
var gist = new Gisty({
  username: 'meritt'
gist.fetch('1111422', function(errorgist) {
  if (error) {
    throw new Error(error);
  for (filename in gist.files) {
    console.log(filename + "\n" + gist.files[filename].content + "\n\n");
Gisty = require 'gisty'
gist = new Gisty username: 'meritt'
gist.fetch '1111422'(error, gist) ->
  throw new Error error if error
  console.log "#{filename}\n#{file.content}\n\n" for filenamefile of gist.files

See other examples

Grab latest source code and install all dev dependencies

$ npm link

Change your host, client id, client secret in examples/ and after that run examples/

$ coffee examples/
  • fetch(gist_id, callback)
  • comments(gist_id, callback)
  • all(callback)
  • public(callback)
  • starred(callback)

The MIT License, see the included file.