Home

Awesome

Alchemist.js

Doing conversions for you so you don’t have to google them and making code more readable.

This work was inspired by ruby gem with similar name. It is not my attention to mimic the functionality of that gem.

Boy, those French: they have a different word for everything! <cite>Steve Martin</cite>

Usage

Once you include Alchemist.js in your code you can usit it like:

var foots = Alchemist.convert(2, "m").to("foot"),
    radians = Alchemist.convert(25, "degrees").to("radians"),
    degrees = Alchemist.convert(25, "arcminute").to("degrees"),
    ares = Alchemist.convert(2500, "square\_foot").to("ares"),
    fahrenheits = Alchemist.convert(36.5, "celsius").to("fahrenheit");

Alchemist.js has conversions for:

And some unusual measurements that you can find in code :-)