logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

cbor2comment - convert CBOR wire protocol to commented version

Description

cbor2comment creates a commented version of an input bytestream.  For example, if the input contained the
       two bytes (in hex) 6161, the output would be:

           61                -- String, length: 1
             61              -- "a"
         0x6161

Name

cbor2comment - convert CBOR wire protocol to commented version

Options

-: read from stdin instead of a file.  This is the default.

       -tNUM,--tabsizeNUM: the number of 2-space tab indents to move the '--' to the right.  Eventually, this
       will be replaced with an algorithm that takes two passes over the input.

       -x[string]: read the input from the hex-encoded string on the command line

       -V,--version: print the node-cbor version and exit

       -h,--help: print some help text and exit

See Also

       • node-cbor https://github.com/hildjj/node-cbor

       • RFC 8949 https://www.rfc-editor.org/rfc/rfc8949.html

                                                  November 2022                                  CBOR2COMMENT(1)

Synopsis

         cbor2comment test.cbor > test.txt

Todo

cbor2comment is not built for execution speed or reuse.

       • Make 2 passes over the input.

       • Move the summary hex output to the beginning.

See Also