Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save codeeshop-oc/a8ab52d1c8bee6307aedb90ec345df7d to your computer and use it in GitHub Desktop.
Save codeeshop-oc/a8ab52d1c8bee6307aedb90ec345df7d to your computer and use it in GitHub Desktop.
Formatted Data for top github users in india
// January 20, 2023
const datas = {
"data": {
"search": {
"userCount": 245,
"pageInfo": {
"endCursor": "Y3Vyc29yOjUw",
"hasNextPage": true
},
"edges": [
{
"node": {}
},
{
"node": {
"email": "in28minutes@gmail.com",
"login": "in28minutes",
"name": null,
"location": "Hyderabad, India",
"url": "https://github.com/in28minutes",
"followers": {
"totalCount": 11871
},
"contributionsCollection": {
"totalPullRequestContributions": 1,
"contributionCalendar": {
"totalContributions": 439
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/14139137?u=470646fa3e61c80cf555680d9290c1bb26b2e16a&v=4"
}
},
{
"node": {
"email": "mtechviral@gmail.com",
"login": "iampawan",
"name": "Pawan Kumar",
"location": "Faridabad, India",
"url": "https://github.com/iampawan",
"followers": {
"totalCount": 10343
},
"contributionsCollection": {
"totalPullRequestContributions": 5,
"contributionCalendar": {
"totalContributions": 257
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/12619420?u=a49ba4b7f5ae93afc2febc86a021b42d2f5b5858&v=4"
}
},
{
"node": {
"email": "hazru.anurag@gmail.com",
"login": "anuraghazra",
"name": "Anurag Hazra",
"location": "India, West Bengal",
"url": "https://github.com/anuraghazra",
"followers": {
"totalCount": 9358
},
"contributionsCollection": {
"totalPullRequestContributions": 84,
"contributionCalendar": {
"totalContributions": 614
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/35374649?u=3125539259bebd2d8af05462a37f22a4fba763e4&v=4"
}
},
{
"node": {
"email": "amit.shekhar.iitbhu@gmail.com",
"login": "amitshekhariitbhu",
"name": "AMIT SHEKHAR",
"location": "New Delhi, India",
"url": "https://github.com/amitshekhariitbhu",
"followers": {
"totalCount": 6848
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 697
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/9877145?u=3827ad395dfc458321f9b65944406cfdd26055dd&v=4"
}
},
{
"node": {
"email": "",
"login": "noob-hackers",
"name": "N17R0",
"location": "india",
"url": "https://github.com/noob-hackers",
"followers": {
"totalCount": 6484
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 9
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/49580304?u=7dece7ce0c7871331f1c2711cf3ba9d0911b1a2e&v=4"
}
},
{
"node": {
"email": "s0md3v@gmail.com",
"login": "s0md3v",
"name": "Somdev Sangwan",
"location": "India",
"url": "https://github.com/s0md3v",
"followers": {
"totalCount": 6155
},
"contributionsCollection": {
"totalPullRequestContributions": 16,
"contributionCalendar": {
"totalContributions": 201
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/26716802?u=51ee13ab4744b9215b6c97974a741906ff47aa07&v=4"
}
},
{
"node": {
"email": "",
"login": "ValentineFernandes",
"name": "Valentine Fernandes",
"location": "Mumbai, India",
"url": "https://github.com/ValentineFernandes",
"followers": {
"totalCount": 5416
},
"contributionsCollection": {
"totalPullRequestContributions": 2,
"contributionCalendar": {
"totalContributions": 1542
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/98638443?u=7fca98b830d7fa48d86128b6a755f4a37e8fb736&v=4"
}
},
{
"node": {
"email": "vivekweb2013@gmail.com",
"login": "vivekweb2013",
"name": "vivekweb2013",
"location": "Pune, India",
"url": "https://github.com/vivekweb2013",
"followers": {
"totalCount": 5249
},
"contributionsCollection": {
"totalPullRequestContributions": 7,
"contributionCalendar": {
"totalContributions": 514
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/7036736?v=4"
}
},
{
"node": {
"email": "",
"login": "jishanshaikh4",
"name": "Jishan Shaikh",
"location": "Indore, India",
"url": "https://github.com/jishanshaikh4",
"followers": {
"totalCount": 4399
},
"contributionsCollection": {
"totalPullRequestContributions": 28,
"contributionCalendar": {
"totalContributions": 768
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/30091032?u=9f74b87873af3748a0d26bf347d41b01a432faf3&v=4"
}
},
{
"node": {
"email": "anuj55149@gmail.com",
"login": "Anuj-Kumar-Sharma",
"name": "Anuj Kumar Sharma",
"location": "New Delhi, India",
"url": "https://github.com/Anuj-Kumar-Sharma",
"followers": {
"totalCount": 4090
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 172
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/17507675?u=dbf1be05b5be3f60bc179b991340dd84e72d4712&v=4"
}
},
{
"node": {
"email": "dev@championswimmer.in",
"login": "championswimmer",
"name": "Arnav Gupta",
"location": "Bangalore, India",
"url": "https://github.com/championswimmer",
"followers": {
"totalCount": 4074
},
"contributionsCollection": {
"totalPullRequestContributions": 9,
"contributionCalendar": {
"totalContributions": 728
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/1327050?v=4"
}
},
{
"node": {
"email": "hitesh@hiteshchoudhary.com",
"login": "hiteshchoudhary",
"name": "Hitesh Choudhary",
"location": "India",
"url": "https://github.com/hiteshchoudhary",
"followers": {
"totalCount": 3752
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 121
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/11613311?u=eb5b71a918effbaf14260160d8d7dee7caaffe1f&v=4"
}
},
{
"node": {
"email": "",
"login": "Aakashdeveloper",
"name": "Aakash ",
"location": "India",
"url": "https://github.com/Aakashdeveloper",
"followers": {
"totalCount": 3470
},
"contributionsCollection": {
"totalPullRequestContributions": 13,
"contributionCalendar": {
"totalContributions": 1569
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/7868704?u=c096793ccffcb705e47356d697325ffb331f2c2a&v=4"
}
},
{
"node": {
"email": "",
"login": "AkshatRastogi-1nC0re",
"name": "AKSHAT RASTOGI",
"location": "India",
"url": "https://github.com/AkshatRastogi-1nC0re",
"followers": {
"totalCount": 3226
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 636
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/71638737?u=528dbef79d2c47173504a42ba25e4d142980df0a&v=4"
}
},
{
"node": {
"email": "ritikumariupadhyay24@gmail.com",
"login": "riti2409",
"name": "Riti Kumari",
"location": "Jharkhand India",
"url": "https://github.com/riti2409",
"followers": {
"totalCount": 3170
},
"contributionsCollection": {
"totalPullRequestContributions": 2,
"contributionCalendar": {
"totalContributions": 293
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/65703138?u=35160b1c4c717f2ae43323300c9242ce37ae52c3&v=4"
}
},
{
"node": {
"email": "liyascthomas@gmail.com",
"login": "liyasthomas",
"name": "Liyas Thomas",
"location": "Kerala, India",
"url": "https://github.com/liyasthomas",
"followers": {
"totalCount": 3109
},
"contributionsCollection": {
"totalPullRequestContributions": 5,
"contributionCalendar": {
"totalContributions": 1120
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/10395817?u=8dfa914a7d631fb9c03f49bb6b003792b7bf491d&v=4"
}
},
{
"node": {
"email": "manjunath5496@gmail.com",
"login": "manjunath5496",
"name": "Manjunath.R",
"location": "Bangalore, India",
"url": "https://github.com/manjunath5496",
"followers": {
"totalCount": 2946
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 223
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/19967403?u=766b0cb1f5f9aaaf0ec39abf7d7b340c094f1fc3&v=4"
}
},
{
"node": {
"email": "",
"login": "kovidgoyal",
"name": "Kovid Goyal",
"location": "Mumbai, India",
"url": "https://github.com/kovidgoyal",
"followers": {
"totalCount": 2844
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 4430
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/1308621?u=b3fb9d6c1fe72bbc3d3b3b1192e8e421cad810c9&v=4"
}
},
{
"node": {
"email": "ashishkumar3094@gmail.com",
"login": "ashishkumar30",
"name": "Ashish Kumar",
"location": "Delhi India",
"url": "https://github.com/ashishkumar30",
"followers": {
"totalCount": 2814
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 26
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/42168687?u=55bc525ed4913c85c03bd2a1df727c6355d9e521&v=4"
}
},
{
"node": {
"email": "",
"login": "tanaypratap",
"name": "Tanay Pratap",
"location": "Bangalore, India",
"url": "https://github.com/tanaypratap",
"followers": {
"totalCount": 2509
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 19
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/10216863?u=1cfca84639b95bc43a1bd2f02038d3faf13dd719&v=4"
}
},
{
"node": {
"email": "",
"login": "rajkumardusad",
"name": "Rajkumar Dusad",
"location": "INDIA",
"url": "https://github.com/rajkumardusad",
"followers": {
"totalCount": 2490
},
"contributionsCollection": {
"totalPullRequestContributions": 1,
"contributionCalendar": {
"totalContributions": 522
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/32831684?u=0c62ed60ff494a4cbe9c9d68fd45e65d813da979&v=4"
}
},
{
"node": {
"email": "",
"login": "aryashah2k",
"name": "Arya Shah",
"location": "Mumbai, India",
"url": "https://github.com/aryashah2k",
"followers": {
"totalCount": 2355
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 1363
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/73865728?u=71274ff3eb3247025fbc016b3260f9da32578a4e&v=4"
}
},
{
"node": {
"email": "ravi8x@gmail.com",
"login": "ravi8x",
"name": "Ravi Tamada",
"location": "India",
"url": "https://github.com/ravi8x",
"followers": {
"totalCount": 2284
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 674
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/497670?v=4"
}
},
{
"node": {
"email": "",
"login": "kartik-v",
"name": "Kartik Visweswaran",
"location": "India",
"url": "https://github.com/kartik-v",
"followers": {
"totalCount": 2182
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 146
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/3592619?v=4"
}
},
{
"node": {
"email": "adi1090x@gmail.com",
"login": "adi1090x",
"name": "Aditya Shakya",
"location": "India",
"url": "https://github.com/adi1090x",
"followers": {
"totalCount": 2151
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 654
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/26059688?u=2e4016d5b30dabc530a860014ff59da0da5f1dc7&v=4"
}
},
{
"node": {
"email": "callicoder@gmail.com",
"login": "callicoder",
"name": "Rajeev Singh",
"location": "Bangalore, India",
"url": "https://github.com/callicoder",
"followers": {
"totalCount": 2109
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 123
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/8003566?u=01a0f828907cddbb2a6b9a1e9997a499c73a52d8&v=4"
}
},
{
"node": {
"email": "vinitshahdeo@gmail.com",
"login": "vinitshahdeo",
"name": "Vinit Shahdeo",
"location": "Bangalore, India",
"url": "https://github.com/vinitshahdeo",
"followers": {
"totalCount": 2102
},
"contributionsCollection": {
"totalPullRequestContributions": 30,
"contributionCalendar": {
"totalContributions": 1261
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/20594326?u=d9109b16e2ef1ac0ffc1ac95129870ff151831cd&v=4"
}
},
{
"node": {
"email": "",
"login": "akashyap2013",
"name": "Akshay Kashyap",
"location": "India",
"url": "https://github.com/akashyap2013",
"followers": {
"totalCount": 2071
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 27
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/37787988?u=124f5df325d55c65314f7583a9ec76ab86ebf76f&v=4"
}
},
{
"node": {
"email": "",
"login": "aritraroy",
"name": "Aritra Roy",
"location": "Bangalore, India",
"url": "https://github.com/aritraroy",
"followers": {
"totalCount": 2064
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 808
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/8044760?u=d4391865929cf6f44bf1c786bd763d464af9f704&v=4"
}
},
{
"node": {
"email": "virk@adonisjs.com",
"login": "thetutlage",
"name": "Harminder Virk",
"location": "India",
"url": "https://github.com/thetutlage",
"followers": {
"totalCount": 2057
},
"contributionsCollection": {
"totalPullRequestContributions": 37,
"contributionCalendar": {
"totalContributions": 2280
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/1706381?u=c5792e562558466a72c7abafe19de797de808254&v=4"
}
},
{
"node": {
"email": "",
"login": "TheAppWizard",
"name": "Shreyas Bhike ",
"location": "India",
"url": "https://github.com/TheAppWizard",
"followers": {
"totalCount": 1977
},
"contributionsCollection": {
"totalPullRequestContributions": 2,
"contributionCalendar": {
"totalContributions": 96
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/70090469?u=3422addd3f337ed83dfb83e550478f380f9697c2&v=4"
}
},
{
"node": {
"email": "",
"login": "PoojaB26",
"name": "Pooja Bhaumik",
"location": "India",
"url": "https://github.com/PoojaB26",
"followers": {
"totalCount": 1973
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 36
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/19394896?u=a2e2d8e6a6bf36c381bbdc205864d41bd0105c04&v=4"
}
},
{
"node": {
"email": "shekhargulati84@gmail.com",
"login": "shekhargulati",
"name": "Shekhar Gulati",
"location": "India",
"url": "https://github.com/shekhargulati",
"followers": {
"totalCount": 1954
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 9
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/184091?u=e249f92b87a6ccaccf919efd0cf2969822641074&v=4"
}
},
{
"node": {
"email": "",
"login": "bhattbhavesh91",
"name": "Bhavesh Bhatt",
"location": "India",
"url": "https://github.com/bhattbhavesh91",
"followers": {
"totalCount": 1929
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 134
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/20332240?u=80afc45e766d4f2db3e9d42357b82983d7f8ff12&v=4"
}
},
{
"node": {
"email": "",
"login": "Hax4us",
"name": "Lokesh Pandey",
"location": "India ",
"url": "https://github.com/Hax4us",
"followers": {
"totalCount": 1919
},
"contributionsCollection": {
"totalPullRequestContributions": 3,
"contributionCalendar": {
"totalContributions": 67
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/30441647?v=4"
}
},
{
"node": {
"email": "singhsanket143@gmail.com",
"login": "singhsanket143",
"name": "Sanket Singh",
"location": "India",
"url": "https://github.com/singhsanket143",
"followers": {
"totalCount": 1918
},
"contributionsCollection": {
"totalPullRequestContributions": 10,
"contributionCalendar": {
"totalContributions": 240
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/29747452?u=254731d979ffeb530d55bbdfd73ab637dacb688c&v=4"
}
},
{
"node": {
"email": "",
"login": "Z4nzu",
"name": "Hardik Zinzuvadiya",
"location": "Gujarat,india",
"url": "https://github.com/Z4nzu",
"followers": {
"totalCount": 1911
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 15
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/25708027?u=43d51529db320284423e8eab65383767c6f52fa7&v=4"
}
},
{
"node": {
"email": "saviomartin2007@gmail.com",
"login": "saviomartin",
"name": "Savio Martin",
"location": "Kerala, India",
"url": "https://github.com/saviomartin",
"followers": {
"totalCount": 1883
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 271
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/61895712?u=0dca41a6bcff9b514a5b0f021a5ca2ef129a76e4&v=4"
}
},
{
"node": {
"email": "",
"login": "haris989",
"name": "Haris Ali Khan",
"location": "Kharagpur, India",
"url": "https://github.com/haris989",
"followers": {
"totalCount": 1874
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 3
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/17453384?u=339db8c39cb26160269b7176af2d03844c381cdb&v=4"
}
},
{
"node": {
"email": "",
"login": "shradha-khapra",
"name": "Shradha Khapra",
"location": "New Delhi,India",
"url": "https://github.com/shradha-khapra",
"followers": {
"totalCount": 1871
},
"contributionsCollection": {
"totalPullRequestContributions": 0,
"contributionCalendar": {
"totalContributions": 4
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/34954810?u=f825db3701e002b7924a63f03cc7f664f0c60f25&v=4"
}
},
{
"node": {
"email": "shreyaspatilg@gmail.com",
"login": "PatilShreyas",
"name": "Shreyas Patil",
"location": "Jalgaon, Maharashtra, India",
"url": "https://github.com/PatilShreyas",
"followers": {
"totalCount": 1869
},
"contributionsCollection": {
"totalPullRequestContributions": 34,
"contributionCalendar": {
"totalContributions": 1041
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/19620536?u=7ea1d8c9a1396f1b6936699094ce9f67da80b178&v=4"
}
},
{
"node": {
"email": "janishar.ali@gmail.com",
"login": "janishar",
"name": "Janishar Ali",
"location": "New Delhi, India",
"url": "https://github.com/janishar",
"followers": {
"totalCount": 1822
},
"contributionsCollection": {
"totalPullRequestContributions": 8,
"contributionCalendar": {
"totalContributions": 847
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/11065002?u=3be4d98be310dcbccd9c70e93c64c59be5733740&v=4"
}
},
{
"node": {
"email": "hello@gautamkrishnar.com",
"login": "gautamkrishnar",
"name": "Gautam krishna R",
"location": "Kerala, India",
"url": "https://github.com/gautamkrishnar",
"followers": {
"totalCount": 1805
},
"contributionsCollection": {
"totalPullRequestContributions": 14,
"contributionCalendar": {
"totalContributions": 191
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/8397274?u=4bcbfc2e61af5d8379ccea532a8a00e3e53d6d1a&v=4"
}
},
{
"node": {
"email": "",
"login": "akshaynarisetti",
"name": "Akshay Narisetti",
"location": "India",
"url": "https://github.com/akshaynarisetti",
"followers": {
"totalCount": 1799
},
"contributionsCollection": {
"totalPullRequestContributions": 29,
"contributionCalendar": {
"totalContributions": 18873
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/58532023?u=0a277b4e49c9bfdbee06e3133070fd2097d37af0&v=4"
}
},
{
"node": {
"email": "theindianappguy@gmail.com",
"login": "theindianappguy",
"name": "Sanskar Tiwari",
"location": "India",
"url": "https://github.com/theindianappguy",
"followers": {
"totalCount": 1756
},
"contributionsCollection": {
"totalPullRequestContributions": 5,
"contributionCalendar": {
"totalContributions": 2470
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/55942632?u=c8b488174634505e9da54f6d7a1564c6ff1ca308&v=4"
}
},
{
"node": {
"email": "chandrikadeb7@gmail.com",
"login": "chandrikadeb7",
"name": "Chandrika Deb",
"location": "Jamshedpur, India",
"url": "https://github.com/chandrikadeb7",
"followers": {
"totalCount": 1750
},
"contributionsCollection": {
"totalPullRequestContributions": 3,
"contributionCalendar": {
"totalContributions": 69
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/29686102?u=353b4f196bcd86ad2670c809d53716af3665f8a4&v=4"
}
},
{
"node": {
"email": "",
"login": "abhisheknaiidu",
"name": "Abhishek Naidu",
"location": "India",
"url": "https://github.com/abhisheknaiidu",
"followers": {
"totalCount": 1733
},
"contributionsCollection": {
"totalPullRequestContributions": 49,
"contributionCalendar": {
"totalContributions": 445
}
},
"avatarUrl": "https://avatars.githubusercontent.com/u/55599878?u=20125265c87bbeb0801d57796ccaaed48fc08706&v=4"
}
}
]
}
}
}
const template = function ({ index, name, username, contribs, avatarUrl, url, location }) {
return `<tr> <th scope="row">#${index}</th> <td><a href="${url}">${username}</a> (${name})</td> <td>${contribs}</td> <!-- <td></td> --> <td>${location}</td> <td><img width="30" height="30" src="${avatarUrl}"></td></tr>`
}
const lists = []
function sortBy(arr) {
return arr.sort((b,a) => {
return parseInt(a.node.contributionsCollection.contributionCalendar.totalContributions) - parseInt(b.node.contributionsCollection.contributionCalendar.totalContributions)
})
}
sortBy(datas.data.search.edges.filter(v => typeof v.node.email != 'undefined')).map((v) => {
const node = v.node
lists.push(template({
index: lists.length + 1,
username: node.login,
name: node.name == null ? '' : node.name,
contribs: node.contributionsCollection.contributionCalendar.totalContributions,
location: node.location,
url: node.url,
avatarUrl: node.avatarUrl
}))
})
console.clear()
console.log(lists.join(''))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment