Fetch GitHub organizations of a user
no authentication required
npm install --save github-organizations
const ghOrgs = require('github-organizations');
ghOrgs('rajikaimal', function(error, response) {
if(error) {
console.log(error);
} else {
console.log(response);
}
});
Returns an array of organization data
Type: string
GitHub username for a request
Type: function
Takes two arguments, error and response respectively
MIT © Rajika Imal