Crates.io | btb |
lib.rs | btb |
version | 0.2.0 |
source | src |
created_at | 2023-09-12 23:32:14.707573 |
updated_at | 2023-09-13 22:48:10.494379 |
description | Base to base, a Rust tool to convert numbers between bases |
homepage | https://github.com/Xyphyn/base-to-base |
repository | https://github.com/Xyphyn/base-to-base |
max_upload_size | |
id | 971063 |
size | 48,445 |
base-to-base
is a little Rust program to convert numbers between bases.
It aims to be as quick to use as possible.
You'll need cargo for this.
cargo install btb
This will place btb
in ~/.cargo/bin
. Make sure it's in your PATH
.
btb <Base> <Number> [...args]`
Base
is the base of the input Number
. It can be any of the following values:
hex x
dec d
oct o
bin b
--to <Base>: output just one base in plaintext