Hex.pm HTTP API
公式からHex.pmのデコーダーhexpmが公開されている。GleamからHex.pmのAPIを叩く時はこれを使うのが良さそうです。 curl https://hex.pm/api/packages/gleam_stdlib jq | bat --language json
以下のようなjsonが返ってきます。
code:json
{
"meta": {
"links": {
},
"description": "A standard library for the Gleam programming language",
"licenses": [
"Apache-2.0"
],
"maintainers": []
},
"name": "gleam_stdlib",
"owners": [
{
"email": "louis@lpil.uk",
"username": "lpil"
}
],
"inserted_at": "2019-05-11T19:28:05.343962Z",
"updated_at": "2024-04-19T12:20:22.414372Z",
"repository": "hexpm",
"releases": [
{
"version": "0.37.0",
"inserted_at": "2024-04-19T12:20:19.753112Z",
"has_docs": true
},
// 長すぎるのでカット
{
"version": "0.2.0",
"inserted_at": "2019-05-11T19:28:05.348115Z",
"has_docs": false
}
],
"downloads": {
"all": 114634,
"day": 706,
"recent": 43416,
"week": 3499
},
"latest_version": "0.37.0",
"retirements": {
"0.2.0": {
"message": "Does not compile correctly",
"reason": "invalid"
}
},
"configs": {
"erlang.mk": "dep_gleam_stdlib = hex 0.37.0",
"mix.exs": "{:gleam_stdlib, \"~> 0.37.0\"}",
"rebar.config": "{gleam_stdlib, \"0.37.0\"}"
},
"latest_stable_version": "0.37.0"
}