https://github.com/jgardona/mhv
mhv is a minimalist hexadecimal viewer.
https://github.com/jgardona/mhv
cli hexadecimal viewer
Last synced: 9 months ago
JSON representation
mhv is a minimalist hexadecimal viewer.
- Host: GitHub
- URL: https://github.com/jgardona/mhv
- Owner: jgardona
- License: mit
- Created: 2023-11-22T13:02:43.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-15T21:18:03.000Z (over 2 years ago)
- Last Synced: 2025-09-16T09:56:00.963Z (10 months ago)
- Topics: cli, hexadecimal, viewer
- Language: Rust
- Homepage:
- Size: 1.96 MB
- Stars: 11
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MHV
## How it works?
* **The color legend**
* ⬛ **Null byte**
* 🟦 **ASCII Printable Characters**
* 🟩 **Space Characters**
* 🟩 **Control Characters**
* 🟥 **ASCII Extended Codes**
* **Install**
```
$ cargo install mhv
```
## Usage
```
❯ mhv -h
A minimalist hex viewer
Usage: mhv [OPTIONS]
Arguments:
Target file
Options:
-s, --skip Skip `N` bytes of the input. The `N` argument can also
include an unit (see `--length` for details). [default: 0]
-l, --length Read `N` bytes from the input. None for full read. The `N`
argument can be a unit with a decimal prefix(kb, mb).
Examples: --length 3kb, -l3kb, --length 1mb...
N unis are kb(1000), K(1024), mb(1000 * 1000), M(1024 * 1024),
and a prefix 0x for hexadecimal, `0x0a`
-n, --no-squeezing Displays all input data. Otherwise any number of output
lines which would be identical to the last one are replaced
with a line comprised of a single asterisk
-h, --help Print help
-V, --version Print version
```
## Stream Workflow

## Usage examples
* **Read 5 bytes from start**

* **Read 32 bytes from start**

* **Skip 16 bytes and read 40**

* **Read using units kb(1000), K(1024), mb(1000 * 1000) or M(1024 * 1024)**

* **Read from offset 0x50 plus 16 bytes**

* **Read UTF16 file**
