Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Adim Victor Adimvicky

🏠
Working from home
View GitHub Profile
@Adimvicky
Adimvicky / index.js
Last active Jul 25, 2020
Contributors markdown list [Alphabetical sorting]
View index.js
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 = {
@Adimvicky
Adimvicky / index.js
Created Jul 24, 2020
Getting list of contributors and converting to a markdown list
View index.js
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}`,