Last active
January 18, 2021 09:15
-
-
Save gistlyn/021b88ccb3a2e578a329e758825ac737 to your computer and use it in GitHub Desktop.
console-script
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
```code | |
var orgName = "ServiceStack" | |
var url = `https://api.github.com/orgs/${orgName}/repos` | |
url |> urlContents({userAgent:'gist.cafe'}) |> to => json | |
{{ json |> parseJson |> orderByDesc => it.watchers |> map => { | |
it.name, it.description, it.language, it.url, it.watchers, it.forks } | |
|> to => orgRepos }} | |
``` | |
Top 3 {{orgName}} GitHub Repos: | |
{{ orgRepos |> take(3) |> dump }} | |
Top 10 {{orgName}} GitHub Repos: | |
{{ orgRepos |> take(10) |> map => { | |
it.name, it.language, it.watchers, it.forks } |> textDump }} | |
{{ { orgRepos } |> inspectVars }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment