2.0.0 • Published 8 years ago

node-github-repos v2.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

node-github-repos

NPM

Dependency Status Known Vulnerabilities

Fetchs all user repositories from GitHub. Uses NodeJS' inbuilt https module and doesn't depends to any external modules.

Super easy usage with ZERO dependencies

// Require the library
var github = require('node-github-repos');

// Fetch erayalakese's public repositories
github.get('erayalakese', function(body) {
	// Fetching successful.
	/*
		body contains repo datas in JSON format.
		Example data : https://api.github.com/users/erayalakese/repos
	*/
	console.log(body);
}, function(err) {
	// An error occured.
	/*
		err is HTTP Status Code.
		404 if user not found.
	*/
	console.log(err);
});