github-list-follow

    1.0.3 • Public • Published

    github-list-follow

    Get Followers/Following on github (no token required)

    npm npm

    Install

    npm i --save github-list-follow

    Usage

    var github = require('github-list-follow');
    var user = github('fcannizzaro');

    Promise

    user
      .followers()
      .then(followers => {
        console.log(followers);
      });

    Event Emitter

    var onData = (data) => {
      console.log(data);
    }
     
    var onFinished = () => {
      console.log('finished');
    }
     
    user
      .followers(true)
      .on('data', onData)
      .on('finish', onFinished);

    Functions

    followers([, ev])

    following([, ev])

    Scrape all pages of user followers / following.

    • boolean ev: use event emitter. (Default false)
    • Return promise or event emitter.

    Events

    data

    Called when a new page is completed.

    finish

    Called when all pages are completed.

    Author

    Francesco Cannizzaro

    Install

    npm i github-list-follow

    DownloadsWeekly Downloads

    1

    Version

    1.0.3

    License

    MIT

    Last publish

    Collaborators

    • fcannizzaro