Crates.io | tcv |
lib.rs | tcv |
version | 0.1.2 |
source | src |
created_at | 2023-10-21 18:09:56.414763 |
updated_at | 2023-10-22 13:16:45.156785 |
description | A temperature unit converter |
homepage | |
repository | https://github.com/jgardona/tcv |
max_upload_size | |
id | 1010143 |
size | 10,546 |
A cli to convert temperatures between kelvin, Celsius and Fahrenheit
cargo install tcv
$ tcv --help
Usage: tcv --temperature <TEMPERATURE> <MODE>
Arguments:
<MODE> The mode for conversion [possible values: k2c, c2k, f2c, c2f, f2k, k2f]
Options:
-t, --temperature <TEMPERATURE> Input temperature to convert
-h, --help Print help information
-V, --version Print version information
$ tcv -t 0 k2c
-273.15
$ tcv -t 80 f2c
26.666666666666668