Last active
December 8, 2023 12:56
-
-
Save rajikaimal/7db52eb85d3414d2493318cf8ab10cd2 to your computer and use it in GitHub Desktop.
Entry point for github-followers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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'); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍