1.0.0 • Published 8 years ago

github-organizations v1.0.0

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

github-organizations Build Status

Fetch GitHub organizations of a user

no authentication required

Install

npm install --save github-organizations

Usage

const ghOrgs = require('github-organizations');

ghOrgs('rajikaimal', function(error, response) {
	if(error) {
		console.log(error);	
	} else {
		console.log(response);
	}
});

API

ghOrgs(query, callback)

Returns an array of organization data

query

Type: string

GitHub username for a request

callback

Type: function

Takes two arguments, error and response respectively

License

MIT © Rajika Imal