felsiusjs

0.9.5 • Public • Published

Keep a Changelog

version license

felsiusJS

A module to simply conversion to 'felsius' a new unit of temperature mentioned in XKCD 1923.

  1. Require it.
var felsius = require('felsiusJS');
  1. 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.

Package Sidebar

Install

npm i felsiusjs

Weekly Downloads

8

Version

0.9.5

License

ISC

Last publish

Collaborators

  • plogbilen