Skip to content

Instantly share code, notes, and snippets.

@rmariuzzo
Created October 1, 2020 18:47
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 rmariuzzo/a1129e64840b90e4d6490b8fa5d5392e to your computer and use it in GitHub Desktop.
Save rmariuzzo/a1129e64840b90e4d6490b8fa5d5392e to your computer and use it in GitHub Desktop.
Get special repos from DR
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