npm

Check out our latest tech talk, "JavaScript Supply Chain Security" presented by VP of Security, Adam Baldwin.Watch it here »

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

29

version

1.0.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability