Skip to content

fotoetienne/cbd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Concise Binary Decoder

Library for decoding and encoding Concise Binary (cbor) Data

Installation

$ cargo install cbd

Usage

Help:

$ cbd --help
Usage: cbd [OPTIONS]

Options:
  -e, --encode  
  -b, --base64  
  -h, --help    Print help

Decode CBOR into JSON:

$ cat file.cbor | cbd
{"key": "value"}

Decode base64 encoded CBOR into JSON:

$ echo 'oWNrZXlldmFsdWU' | cbd
{"key": "value"}

Encode JSON into CBOR:

$ cat file.json | cbd -e
?ckeyevalue

Encode JSON into base64 encoded CBOR:

$ cat file.json | cbd -e --base64
oWNrZXlldmFsdWU

About

Concise Binary Decoder - CLI tool for decoding and encoding compact binary (cbor) data

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages