Transforms one serialization format into another. Available serialization formats include:
application/json
)application/toml
)text/x-yaml
)text/csv
)| Package manager | Command |
| --------------- | ---------------------- |
| Cargo | cargo install recast
|
```text Transforms one serialization format into another
Usage: recast [OPTIONS] [FILE]
Arguments: [FILE] File to transform
Options:
-f, --from --help
for more detail)
-V, --version Print version information
```
Leverage jq's powerful filters on other serialization formats
sh
$ recast -f toml Cargo.lock \
| jq '.package | map({name: .name, version: .version}) | sort_by(.name)' \
| recast -t csv \
| head -n 5
name,version
addr2line,0.19.0
adler,1.0.2
autocfg,1.1.0
backtrace,0.3.67