Git Product home page Git Product logo

mhv's Introduction

MHV

Crates.io Crates.io Downloads Rust Stable License GitHub Actions Workflow Status

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] <FILENAME>

Arguments:
  <FILENAME>  Target file

Options:
  -s, --skip <N>      Skip `N` bytes of the input. The `N` argument can also
                      include an unit (see `--length` for details). [default: 0]
  -l, --length <N>    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

mhv's People

Contributors

jgardona avatar massa avatar

Stargazers

 avatar overtube avatar Mack avatar Mr.Ender avatar Argon avatar Broderick Westrope avatar  avatar Andrew Potter avatar Laco Skokan avatar  avatar Wyatt Herkamp avatar Henry Barreto avatar

Watchers

 avatar

Forkers

massa

mhv's Issues

Typo in doc

In documentation there is an example that says read 32 bytes but image shows it reads 16

Fix error handling

There are too much unwrap without proper error handling causing execution error prone, like the one in main function.

Consider using a buffer

Consider using a buffer instead of using print! macro to perform output, because print! will flush the buffer all time degrading performance.

Skip empty data offsets

Skip empty data offsets when parsing the entire file, There is no need to print the entire file and its missing data.

Word unfinnished

There are a typo in the mhv usage last line. Print versio. Must be changed for print version.

Enhance characteres

Enhance characters to better visualization. Another different characters, print 0x00 as 00 and 0xff as FF, and use in left panel more diferse characters.

Update documentation

Enhance documentation by add a diagram about stream workflow for better project clarity.

Fix image stream diagram

The stream diagram has an error in arrow pointing to the wrong direction (for data). Must point to read data process.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.