Skip to content

Instantly share code, notes, and snippets.

@gistlyn
Last active January 18, 2021 09:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save gistlyn/021b88ccb3a2e578a329e758825ac737 to your computer and use it in GitHub Desktop.
console-script
```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