Giter Site home page Giter Site logo

hevi's Introduction

Hi! My name is Arnau

Zig Logo Zig lover
๐Ÿ’พ OS-dev as a hobby
โš”๏ธ Linux user
๐Ÿงช Coding since 2016

hevi's People

Contributors

arnau478 avatar

Stargazers

 avatar

Watchers

 avatar

hevi's Issues

Exporters

Add "exporter" functionality. This would export the binary data into a specific format, usually a programming language constant declaration.

Example

Executing hevi some_file --exporter c would return a C array declaration, like:

unsigned char some_file[] = {0x00, 0x11, 0x22, 0x33};

Skipping lines

Add an option to skip all lines that are exactly the same as both the previous and the next one.

Example

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

Custom color

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)

An option to hide size

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)

Use custom argument parser

clap is actually pretty good, but having a custom argument parser will make further development much easier.

Uppercase hex

Add an option to choose between uppercase and lowercase hexadecimal formatting

Man page

Create a man page for hevi, explaining its usage, flags, and with a link to this issue tracker.

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.