Created
January 7, 2020 09:54
-
-
Save yaasita/00ca76e2af3e12d3b7d8ea22e5a7793f to your computer and use it in GitHub Desktop.
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
"use strict"; | |
const fetch = require("node-fetch"); | |
const url = new URL("https://api.github.com/users/yaasita/repos"); | |
const params = { | |
page: 1, | |
per_page: 100 | |
}; | |
url.search = new URLSearchParams(params); | |
(async () => { | |
const result = await fetch(url); | |
const repos = await result.json(); | |
for (const r of repos) { | |
if (r.has_pages === true) { | |
console.log(r.name); | |
} | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment