Last active
November 10, 2019 02:58
-
-
Save brianjlandau/ebd3b9bb7b699022d1cb8ad6d04695d6 to your computer and use it in GitHub Desktop.
Get the top 500 homebrew formula and browse
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
curl "https://formulae.brew.sh/api/analytics/install-on-request/homebrew-core/90d.json" | \ | |
jq ".formulae | | |
to_entries | | |
sort_by([(.value[].count | gsub(\",\"; \"\") | tonumber)] | add) | | |
reverse | | |
map({key: .key, value: ([(.value[].count | gsub(\",\"; \"\") | tonumber)] | add)})[0:500] | | |
from_entries" | \ | |
less |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment