6 releases
0.2.1 | Feb 18, 2021 |
---|---|
0.2.0 | Feb 2, 2021 |
0.1.3 | Nov 17, 2020 |
0.1.2 | May 19, 2020 |
0.1.1 | Dec 8, 2018 |
#1698 in Encoding
11KB
132 lines
Babelfish
The universal translater for encodings.
Install
Installing with different features provides different binaries. By default all features are selected.
$ cargo install babelfish
To install babelfish with only support for cbor
and json
which provides
json2cbor
and cbor2json
.
$ cargo install babelfish --features="cbor json" # cbor2json, json2cbor
Supported encodings
- cbor
- json
- toml
- yaml
Usage
Currently, conversion can only be done with input output.
$ cbor2json < file.cbor
$ cat file.json | jq ... | json2cbor > file.cbor
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
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.
Dependencies
~0.1–0.8MB
~18K SLoC