Created
October 1, 2020 18:47
-
-
Save rmariuzzo/a1129e64840b90e4d6490b8fa5d5392e to your computer and use it in GitHub Desktop.
Get special repos from DR
This file contains hidden or 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
var repos = await (await fetch('https://developersdo.github.io/opensource-data/repos.json')).json() | |
console.log(`Repos Total: ${repos.length}`) | |
var specialRepos = repos.filter(repo => { | |
var [login, name] = repo.name.split('/') | |
return login === name | |
}) | |
console.log(`Special Repos Total: ${specialRepos.length}`) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment