Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including github-list-follow with all npm packages installed. Try it out:

var githubListFollow = require("github-list-follow")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

github-list-follow v1.0.3

Get Followers/Following on github (no token required)

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

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free