arnau478 / hevi Goto Github PK
View Code? Open in Web Editor NEWHex viewer
License: GNU General Public License v3.0
Hex viewer
License: GNU General Public License v3.0
For small files, it looks a bit weird to see File size: 294 bytes (294.00 B)
at the end. It would be better to just print File size: 294 bytes
in that case.
Add "exporter" functionality. This would export the binary data into a specific format, usually a programming language constant declaration.
Executing hevi some_file --exporter c
would return a C array declaration, like:
unsigned char some_file[] = {0x00, 0x11, 0x22, 0x33};
Add an option to skip all lines that are exactly the same as both the previous and the next one.
dead beef dead beef dead beef dead beef
dead beef dead beef dead beef dead beef
dead beef dead beef dead beef dead beef
dead beef dead beef dead beef dead beef
dead beef dead beef dead beef dead beef
would turn into something like
dead beef dead beef dead beef dead beef
... 3 lines skipped ...
dead beef dead beef dead beef dead beef
Right now, the color is hardcoded to yellow. It would be wise to allow the user to change this with a flag.
We should keep in mind how ANSI colors work. We might want the flag value to either be a color name (e.g. red
) or a hex color. The first case would use color codes like ESC[33m
while the latter would use ANSI truecolor.
We could of course implement some sort of truecolor detection, but that seems a bit overkill. Although I wanted to do something like that to set the --color
default (#7)
It would be good to have flags that disable the offset and the ASCII output
Add a command line option in order to not print the file size at the end of the dump.
Possible names:
--no-size
Concise, but can be misleading--no-filesize
/ Verbose, but solves --no-size
's problem--no-stat
Can be misleading (we're not showing a full stat, even though that's what's happening internally)clap
is actually pretty good, but having a custom argument parser will make further development much easier.
Add an option to choose between uppercase and lowercase hexadecimal formatting
Default --color
to what hevi guesses, with some sort of ANSI detection
Create a man page for hevi, explaining its usage, flags, and with a link to this issue tracker.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.