Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcy/0x
`0x` - like `xxd` but colorful!
https://github.com/mcy/0x
Last synced: about 2 months ago
JSON representation
`0x` - like `xxd` but colorful!
- Host: GitHub
- URL: https://github.com/mcy/0x
- Owner: mcy
- License: apache-2.0
- Created: 2022-07-11T22:04:33.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-11T22:06:15.000Z (about 2 years ago)
- Last Synced: 2024-07-13T06:05:32.352Z (3 months ago)
- Language: Rust
- Size: 319 KB
- Stars: 83
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
`0x` - like `xxd` but colorful!
==========*Note: for technical reasons, this library is listed as `ohx` on crates.io.*
![An example of 0x's output](static/example.png)
`0x` is a simple utility similar to `xxd` with a few nice features:
- Colorized output, with configurable output colors!
- Support for printing in bases 2, 4, 8, 16, 32, and 64.
- A small RPN calculator for picking how to color code bytes.For example, to print all bytes with the sign bit set in red and all others in
blue, use `-x` to shift in sign bits, and colorize based on that.```sh
0x -x '>>>7' -z skyblue,red my_file
```The result is something like this (here `0x` is dumping itself):
![Another example of 0x's output](static/sign_bits.png)
---
`0x` tries to mimic `xxd`'s command-line interface where possible, although we
cannot promise full fidelity.