A simple command line tool for converting between various units of measurement
Fetch the latest release for your platform:
sudo wget https://github.com/bcicen/xiny/releases/download/v0.3.3/xiny-0.3.3-linux-amd64 -O /usr/local/bin/xiny
sudo chmod +x /usr/local/bin/xiny
sudo curl -Lo /usr/local/bin/xiny https://github.com/bcicen/xiny/releases/download/v0.3.3/xiny-0.3.3-darwin-amd64
sudo chmod +x /usr/local/bin/xiny
docker run --rm -ti \
--name=xiny \
quay.io/vektorlab/xiny:latest
Conversions may be passed in long form:
$ xiny 20 kilograms in pounds
44.092452 pounds
or shortened form with symbols:
$ xiny 20kg in lb
44.092452 pounds
Use the verbose flag(-v
) to print the formula used for the conversion:
$ xiny -v 32C in F
celsius -> farenheit: (x * 1.8 + 32)
89.6 farenheit
If no positional arguments are provided, xiny
will be started in interactive mode, providing a prompt for conversions with autocomplete and other useful features
Option | Description |
---|---|
-n | display only numeric output (exclude units) |
-v | enable more verbose output (twice for debug output) |