temp-units-conv
Convert temperature units (Kelvin, Celsius, Fahrenheit), lib + CLI. Based on snippets by doug65536 and jesus666 on #Node.js
Try it live: Web Demo
simple
var tuc = ;tuc; // 212tuc; // 373.15tuc; // 100tuc; // 232.77…tuc; // 505.9…
objective
var tuc = waterboil = 100 'C';Stringwaterboil; // '100.00 °C'waterboilunit; // function Celsius(c) {…} var americanWaterBoil = waterboil;StringamericanWaterBoil; // '212.00 °F'americanWaterBoiltemp; // 212americanWaterBoilunitnameLong; // 'degrees Fahrenheit'americanWaterBoilunitnameShort; // '°F' 451; // '505.93 K' var tempFromString = '0 K';tempFromString; // '-273.15 °C'
shelly
$ tempconv 100C 451F 0K100.00 °C = 212.00 °F = 373.15 K451.00 °F = 232.78 °C = 505.93 K0.00 K = -459.67 °F = -273.15 °C
License
MIT