Fetch public github gists by username and id with no authentication WARNING: you may hit API cap really fast, this is mostly for experimentation
Install via NPM
npm install public-gists
var gists = require('public-gists');
gists.getPublicGistsByUsername( 'wixo', function ( error, result ) {
if ( error ) {
throw new Error( 'There was an error', error );
}
console.log( 'getPublicGistsByUsername: ', result );
} );
gists.getPublicGistById( 1, function ( error, result ) {
if ( error ) {
throw new Error( 'There was an error', error );
}
console.log( 'getPublicGistById: ', result );
} );
Okthxbye