Skip to content

Instantly share code, notes, and snippets.

@plibither8
Created December 15, 2019 18:24
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 plibither8/7fe52e3d7b332c36f6630f1c41625c49 to your computer and use it in GitHub Desktop.
Save plibither8/7fe52e3d7b332c36f6630f1c41625c49 to your computer and use it in GitHub Desktop.
const url = 'https://api.github.com/users/plibither8/repos?per_page=100';
copy(
[
...await fetch(url).then(res => res.json())
]
.filter(r => !r.fork)
.map(r =>
`* [${r.name}](${r.html_url}) - ${r.archived ? '_Archived_ -' : ''} ${r.description}`
)
.join('\n')
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment