Like hexdump -C, but as a small JS library.
npm install @cto.af/chex-cli
Usage: chex [options] [file...]
Arguments:
file file names to read or "-" for stdin
Options:
-c,--colors force colors on even if stdout is not a tty
--no-colors force colors off even if stdout is a tty
-C,--columns <number> how many columns of 8 bytes? (default: 2)
-d,--dots use dots for more control characters, instead of
Unicode representations
-p,--pager [pager command] override PAGER environment variable. If no
command is specified, turn off paging. Suggested:
"less -REX". (default: "less -REX")
-s,--strings <encoding> try to decode strings in this encoding (choices:
"utf8", "utf-8")
-V, --version output the version number
-h, --help display help for command