aq
Extend jq for any data format.
Currently supports JSON, TOML, and YAML.
📦 Installation
Pre-built binaries for 64-bit Linux, macOS, and Windows are provided. The
following script can be used to automatically detect your host system, download
the required artifact, and extract the aq binary to the given directory.
|
Alternatively, you can download an artifact directly from the the releases page.
Cargo
aq can be installed from Crates.io
using Cargo, the Rust package manager.
🤸 Usage
By default aq behaves just like jq
and operates on JSON.
|
But it also accepts options to specify the input and output format. For example with a TOML input and a JSON output:
|
If not provided, the output format defaults to the input format. Additionally,
you can use j for JSON, t for TOML, and y for YAML for maximum brevity.
|
= 1337
License
This project is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.