Crate b0x[−][src]
A simple CLI tool to display information about the provided input.
Installation
$ cargo install b0x
Usage
While you don't see it below, it prints everything in color.
Numbers
Supported formats:
- Decimal:
42
- Binary:
0b101010
- Octal:
0o52
- Hexadecimal:
0x2A
$ b0x 0xC0FFEE
found u128(12648430)
bin 110000001111111111101110
├ ones 16
├ zeros 112
├ leading zeros 104
└ trailing zeros 1
oct 60177756
dec 12648430
hex c0ffee
HEX C0FFEE
next 2^x 16777216
Strings
$ b0x "StRiNg"
found string(StRiNg)
len 6
bytes [83, 116, 82, 105, 78, 103]
ascii? true
upper STRING
lower string
Modules
integer |
Deals with unsigned integers ( |
string |
Deals with strings ( |
Functions
run |
Given an input |