The universal translater for encodings.
Installing with different features provides different binaries. By default all features are selected.
sh
$ cargo install babelfish
To install babelfish with only support for cbor
and json
which provides
json2cbor
and cbor2json
.
sh
$ cargo install babelfish --features="cbor json" # cbor2json, json2cbor
Currently, conversion can only be done with input output.
sh
$ cbor2json < file.cbor
$ cat file.json | jq ... | json2cbor > file.cbor
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.