Skip to content

Instantly share code, notes, and snippets.

@yaasita
Created January 7, 2020 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaasita/00ca76e2af3e12d3b7d8ea22e5a7793f to your computer and use it in GitHub Desktop.
Save yaasita/00ca76e2af3e12d3b7d8ea22e5a7793f to your computer and use it in GitHub Desktop.
"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