github-organizations
v1.0.0
Published
get organizations of a user
Downloads
3
Readme
github-organizations
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