Query, filter, and transform structured data (JSON, YAML, TOML) efficiently from the command line.
| jq | jq '.key' file.json | JSON processing | | yq | yq '.key' file.yaml | YAML/TOML processing |
| Get field | jq '.key' | yq '.key' | | Array element | jq '.[0]' | yq '.[0]' | | Filter array | jq '.[] \| select(.x)' | yq '.[] \| select(.x)' | | Transform | jq 'map(.x)' | yq 'map(.x)' | | Count | jq 'length' | yq 'length' | | Keys | jq 'keys' | yq 'keys' | | Pretty print | jq '.' | yq '.' | | Compact | jq -c | yq -o json -I0 |
Elabora JSON con jq e YAML/TOML con yq. Filtra, trasforma, interroga i dati strutturati in modo efficiente. Trigger su: analisi JSON, estrazione da YAML, configurazione query, Docker Compose, manifest K8s, flussi di lavoro GitHub Actions, pacchetto.json, filtro dati. Fonte: 0xdarkmatter/claude-mods.