Skip to content

metaclips/ruq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RUQ (Rust Universal Querier), is a lightweight JSON, TOML, and YAML processor. RUQ uses jq like syntax.

User Guide

Get a value

echo "{"foo": 0}" | ruq --filter '.foo' --from 'json'

Get an indexed value

echo '[{"foo": 0}, {"foo": 1}]' | ruq --filter '.[1].foo'

Conversion

echo '[{"foo": 0}, {"foo": 1}]' | ruq --filter '.[1]' --from json --to toml

Arthmetic

echo '{}' | ruq --filter '{"a": 1} + {"b": 2} + {"c": 3} + {"a": 42}'

Length

echo '[{"foo": 0}, {"foo": 1}]' | ruq --filter '.|length'

About

Language Querier. Just like JQ but more.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages