Skip to content

Instantly share code, notes, and snippets.

@rajikaimal
Last active December 8, 2023 12:56
Show Gist options
  • Select an option

  • Save rajikaimal/7db52eb85d3414d2493318cf8ab10cd2 to your computer and use it in GitHub Desktop.

Select an option

Save rajikaimal/7db52eb85d3414d2493318cf8ab10cd2 to your computer and use it in GitHub Desktop.
Entry point for github-followers
const httpFetcher = require('http-fetcher');
const ghURI = '/users/:username/followers';
module.exports = function(username) {
const URI = ghURI.replace(':username', username);
return httpFetcher('api.github.com', URI, { 'User-Agent': 'github-followers' }, 'https');
}
@anandugnath

Copy link
Copy Markdown

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment