cbor-cli 0.1.0

A command line tool for encoding and decoding CBOR using the serde crate to do encoding and decoding from various file formats to and from CBOR.
Documentation

CBOR CLI

A command line tool for encoding and decoding CBOR using the serde crate to do encoding and decoding from various file formats to and from CBOR.

Installation

cargo install cbor-cli

Import from file format into CBOR

cbor import test.json > test.cbor

Export from CBOR into some file format.

cbor export --format=json test.cbor > test.json

Delimiter

The default delimiter is a newline. You can change it to a comma or any other string of characters.

cbor to --format=json --delimiter=, test.cbor > test.json

Inspect

For debugging, you can dump the structure of one or more CBOR files to stdout.

cbor inspect test.cbor

TODO

  • Piped input
  • 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