Skip to content
mosskjohnsonPublic

About

Command line tool for conversions between units, written in Haskell

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

conv

Command line tool for conversions between units, written in Haskell

Usage

conv <number> <fromUnit> <toUnit>

Setting it up

  • Download the executable from the releases tab
  • Add it to your PATH

Supported Units

Unit Commands
Celcius ["celcius", "c"]
Fahrenheit ["fahrenheit", "f"]
Kelvin ["kelvin", "k"]
Rankine ["rankine", "ra"]
Meter ["meter", "metre", "m"]
Mile ["mile", "mi"]
Centimeter ["centimeter", "cm"]
Kilometer ["kilometer", "km"]
Inch ["inch", "in"]
Foot ["foot", "feet", "ft"]
Yard ["yard", "yd"]
Fathom ["fathom"]
NauticalMile ["nauticalmile", "nmi"]
AstronomicalUnit ["astronomicalunit", "au", "ua"]
Micrometer ["micrometer", "micrometre", "micron"]
Nanometer ["nanometer", "nanometre", "nm"]
Millimeter ["millimeter", "mm"]
Second ["second", "s", "sec"]
Minute ["minute", "min"]
Hour ["hour", "hr"]
Day ["day", "d"]
Week ["week", "wk"]
Month ["month", "mo"]
Year ["year", "yr"]
Decade ["decade"]
Century ["century"]
Millennium ["millennium"]
Millisecond ["millisecond", "ms"]
Microsecond ["microsecond"]
Nanosecond ["nanosecond", "ns"]
Fortnight ["fortnight"]
Kilogram ["kilogram", "kilo", "kg"]
AtomicMassUnit ["atomicmassunit", "amu"]
Gram ["gram", "g"]
Milligram ["milligram", "mg"]
Ounce ["ounce", "oz"]
Pound ["pound", "lb"]
Stone ["stone", "st"]
MetricTon ["metricton"]
Liter ["liter", "litre", "l"]
Milliliter ["milliliter", "millilitre", "ml"]
FluidOunce ["fluidounce", "floz"]
Cup ["cup"]
Pint ["pint"]
Quart ["quart"]
Gallon ["gallon", "gal", "gl"]
Radian ["radian", "rad"]
Degree ["degree", "deg"]
Gradian ["gradian", "grad"]
Revolution ["revolution", "rev"]
ArcMinute ["arcminute", "amin"]
ArcSecond ["arcsecond", "asec"]
MeterPerSecond ["meterpersecond", "m/s"]
MilePerHour ["mileperhour", "mph", "m/h"]
FootPerSecond ["footpersecond", "fps", "ft/s"]
KilometerPerHour ["kilometerperhour", "kph", "km/h"]
Knot ["knot"]
Mach ["mach"]
Newton ["newton", "n"]
Dyne ["dyne"]
PoundForce ["poundforce"]
Kip ["kip"]
KiloNewton ["kilonewton", "kn"]
GramForce ["gramforce"]
OunceForce ["ounceforce"]
KilogramForce ["kilogramforce", "kgf"]
TonForce ["tonforce", "tf"]
Bit ["bit"]
Byte ["byte"]
Kilobit ["kilobit"]
Kilobyte ["kilobyte"]
Kibibit ["kibibit"]
Kibibyte ["kibibyte"]
Megabit ["megabit"]
Megabyte ["megabyte"]
Mebibit ["mebibit"]
Mebibyte ["mebibyte"]
Terabit ["terabit"]
Terabyte ["terabyte"]
Tebibit ["tebibit"]
Tebibyte ["tebibyte"]
Joule ["joule", "j"]
Kilojoule ["kilojoule", "kj"]
Nanojoule ["nanojoule", "nj"]
Gramcalorie ["gramcalorie", "cal"]
Kilocalorie ["kilocalorie", "kcal"]
WattHour ["watthour", "wh"]
KilowattHour ["kilowatthour", "kwh"]
Erg ["erg"]
BritishThermalUnit ["britishthermalunit", "btu"]
ElectronVolt ["electronvolt", "ev"]
FootPound ["footpound", "ftlb"]
SqMeter ["squaremeter", "squaremetre", "sqm"]
SqMile ["squaremile", "sqmi"]
SqCentimeter ["squarecentimeter", "sqcm"]
SqKilometer ["squarekilometer", "sqkm"]
SqInch ["squareinch", "sqin"]
SqFoot ["squarefoot", "squarefeet", "sqft"]
SqYard ["sqareyard", "sqyd"]
SqMicrometer ["squaremicrometer", "squaremicrometre", "sqmicron"]
SqNanometer ["squarenanometer", "squarenanometre", "sqnm"]
SqMillimeter ["squaremillimeter", "sqmm"]
Acre ["acre"]
Barn ["barn"]
Rood ["rood"]
SqRod ["squarerod", "sqrod"]
Are ["are"]
Pascal ["pascal", "pa"]
Atmosphere ["atmosphere", "atm"]
Torr ["torr"]
MMHG ["mmhg"]
Bar ["bar"]
Kilobar ["kilobar"]
PSI ["psi"]
Kilopascal ["kilopascal", "kpa"]
Watt ["watt", "w"]
Kilowatt ["kilowatt", "kw"]
Megawatt ["megawatt", "mw"]
Gigawatt ["gigawatt", "gw"]
Horsepower ["horsepower", "hp"]

Help

conv --help

About

Command line tool for conversions between units, written in Haskell

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages