bytary

Crates.iobytary
lib.rsbytary
version0.1.0
created_at2025-05-12 15:23:00.205932+00
updated_at2025-05-12 15:23:00.205932+00
descriptionA simple CLI tool for binary data manipulation
homepage
repositoryhttps://github.com/Leawind/bytary
max_upload_size
id1670742
size37,713
Leawind (Leawind)

documentation

README

bytary

A simple CLI tool for binary data manipulation.

Examples

List all supported formats:

$> bytary -l
Available formats: bytes, bin, hex, oct

Convert bytes to hexadecimal:

$> echo ABC | bytary hex
4142430a

Convert bytes to hexadecimal with space and line wrap:

$> echo Hello, World! | bytary hex -s 2 -w 14
48 65 6c 6c 6f 2c 20
57 6f 72 6c 64 21 0a

Convert hexadecimal to bytes:

$> echo 48 65 6c 6c 6f 2c 20 57 6f 72 6c 64 21 0a | bytary bytes hex
Hello, World!

Help

A simple CLI tool for binary data manipulation

Usage: bytary [OPTIONS] [TO] [FROM]

Arguments:
  [TO]    Output format [default: bytes]
  [FROM]  Input format [default: bytes]

Options:
  -l, --list-formats            List all supported formats and exit
  -s, --space <SPACE_INTERVAL>  Space interval between bytes [default: 0]
  -w, --wrap <WRAP_INTERVAL>    Line wrap interval [default: 0]
  -v, --verbose                 Use verbose output
  -h, --help                    Print help (see more with '--help')
  -V, --version                 Print version
Commit count: 17

cargo fmt