0.9.5 • Published 6 years ago
felsiusjs v0.9.5
felsiusJS
A module to simply conversion to 'felsius' a new unit of temperature mentioned in XKCD 1923.
- Require it.
var felsius = require('felsiusJS');
- Use it.
var c = felsius.toFelsius(9, 'c');
var f = felsius.toFelsius(9, 'f');
var f = felsius.toFelsius(9, 'k');
var f = felsius.fromFelsius(9, 'k');
var f = felsius.fromFelsius(9, 'c');
var f = felsius.fromFelsius(9, 'f');
The second argument is for the unit. c for celsius, f for fahrenheit and k for kelvin. Can be omitted and will if so defualt to celsius.
The 'k' option is available in version v0.9.0 and onwards.