2 releases

0.1.2 Oct 22, 2023
0.1.1 Oct 21, 2023

#1231 in Command line utilities

Download history 3/week @ 2023-11-10 3/week @ 2023-11-17 5/week @ 2023-11-24 7/week @ 2023-12-01 2/week @ 2023-12-15 6/week @ 2023-12-22 1/week @ 2024-01-05 3/week @ 2024-01-26 2/week @ 2024-02-02 6/week @ 2024-02-09 46/week @ 2024-02-16

57 downloads per month

MIT license

5KB

Temperature Converter

A cli to convert temperatures between kelvin, Celsius and Fahrenheit

  • Install
cargo install tcv
  • Usage
$ 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
  • Kelvin to Celsius conversion
$ tcv -t 0 k2c
-273.15
  • Fahrenheit to Celsius conversion
$ tcv -t 80 f2c
26.666666666666668

Dependencies

~1.2–1.8MB
~35K SLoC