https://github.com/pickfire/babelfish
Universal translater for encodings
https://github.com/pickfire/babelfish
babelfish cli encoding rust
Last synced: 11 months ago
JSON representation
Universal translater for encodings
- Host: GitHub
- URL: https://github.com/pickfire/babelfish
- Owner: pickfire
- License: apache-2.0
- Created: 2018-12-08T07:06:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-20T13:53:09.000Z (over 4 years ago)
- Last Synced: 2025-06-30T11:04:52.801Z (11 months ago)
- Topics: babelfish, cli, encoding, rust
- Language: Rust
- Homepage:
- Size: 27.3 KB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
Babelfish
=========
The universal translater for encodings.
## Install
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
```
### Supported encodings
- cbor
- json
- toml
- yaml
## Usage
Currently, conversion can only be done with input output.
```sh
$ cbor2json < file.cbor
$ cat file.json | jq ... | json2cbor > file.cbor
```
## License
Licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](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.