1.0.3 • Published 7 years ago

github-list-follow v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago