View index.js
This file contains 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 fs = require("fs"); | |
const path = require("path"); | |
const request = require("request-promise"); | |
let apiUrl = "https://api.github.com/repos/firstcontributions/first-contributions/contributors?per_page=100"; | |
let pageLimit = 5; | |
let filePath = path.join(__dirname,'Contributor.md'); | |
for(let page = 1; page <= pageLimit; page++){ | |
let options = { |
View index.js
This file contains 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 fs = require("fs"); | |
const path = require("path"); | |
const request = require("request-promise"); | |
let apiUrl = "https://api.github.com/repos/firstcontributions/first-contributions/contributors?per_page=100"; | |
// Change the page limit (currently 10) to 50 | |
for(let page = 1; page <= 10; page++){ | |
let options = { | |
uri : `${apiUrl}&page=${page}`, |