github-organizations

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i github-organizations

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • rajikaimal