CBOR CLI
Command line tool for encoding and decoding CBOR using serde. Supports import and export for JSON, YAML, and TOML. Supports deep inspection of CBOR files.
Features:
- Import and Export from JSON, YAML, TOML
- Inspect CBOR files for debugging
- Supports piped input and output (stdin and stdout)
- Supports multiple input files or multiple items in a single file
- Supports custom delimiters output
Installation
Homebrew
Cargo
Import
Export
Example of exporting to a JSON file:
Example of importing in one format and exporting in another:
|
Example of importing stdin and then exporting to stdout:
| |
Inspect
For debugging, you can dump the structure of one or more CBOR files to stdout.
You can inspect the resulting data across multiple types of files if you pipe to cbor first:
|
Delimiter
You can specify a unique delimiter.
TODO
- Import and Export to Parquet
- Inspect Tag support: Compression
- Inspect Tag support: Date, Time, Timestamp
- Inspect Tag support: BigNum, Fractions, Decimals
- Inspect Tag support: Geo and Spacial coordinates
- Inspect Tag support: Deferred CBOR
- Inspect Tag support: UUID
- Inspect Tag support: Base64
- Inspect Tag support: Base16
- Inspect Tag support: URI and URLs