alchemist.js
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:alchemist.js
# 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!
> Steve Martin

## Usage

Once you include _Alchemist.js_ in your code you can usit it like:

```javascript
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:

* absorbed radiation dose
    * gray
    * grays
    * Gy
    * rad
    * rads
* angles
    * radian
    * radians
    * degree
    * degrees
    * arcminute
    * arcminutes
    * arcsecond
    * arcseconds
    * mil
    * mils
    * revolution
    * revolutions
    * circle
    * circles
    * right\_angle
    * right\_angles
    * grad
    * grade
    * gradian
    * gon
    * grads
    * grades
    * gradians
    * gons
* area
    * square\_meter
    * square\_meters
    * square\_metre
    * square\_metres
    * acre
    * acres
    * are
    * ares
    * a
    * barn
    * barns
    * b
    * circular\_mil
    * circular\_mils
    * hectare
    * hectares
    * ha
    * square\_foot
    * square\_feet
    * square\_inch
    * square\_inches
    * square\_mile
    * square\_miles
    * square\_yard
    * square\_yards
* capacitance
    * farad
    * farads
    * F
    * abfarad
    * emu\_of\_capacitance
    * abfarads
    * emus\_of\_capacitance
    * statfarad
    * esu\_of\_capacitance
    * statfarads
    * esus\_of\_capacitance
* distance
    * meter
    * metres
    * meters
    * m
    * fermi
    * fermis
    * micron
    * microns
    * chain
    * chains
    * inch
    * inches
    * in
    * microinch
    * microinches
    * mil
    * mils
    * rod
    * rods
    * league
    * leagues
    * foot
    * feet
    * ft
    * yard
    * yards
    * yd
    * mile
    * miles
    * mi
    * astronomical\_unit
    * astronomical\_units
    * au
    * ua
    * light\_year
    * light\_years
    * ly
    * parsec
    * parsecs
    * nautical\_mile
    * nautical\_miles
    * admirality\_mile
    * admirality\_miles
    * fathom
    * fathoms
    * cable\_length
    * cable\_lengths
    * angstrom
    * angstroms
    * pica
    * picas
    * printer\_pica
    * printer\_picas
    * point
    * points
    * printer\_point
    * printer\_points
* dose equivalent
    * sievert
    * sieverts
    * Si
    * rem
    * rems
* electric charge
    * coulomb
    * coulombs
    * C
    * abcoulomb
    * abcoulombs
    * ampere\_hour
    * ampere\_hours
    * faraday
    * faradays
    * franklin
    * franklins
    * Fr
    * statcoulomb
    * statcoulombs
* electric conductance
    * siemen
    * siemens
    * S
    * mho
    * abmho
    * absiemen
    * absiemens
    * statmho
    * statsiemen
    * statsiemens
* electrical impedance
    * ohm
    * ohms
    * abohm
    * emu\_of\_resistance
    * abohms
    * emus\_of\_resistance
    * statohm
    * esu\_of\_resistance
    * statohms
    * esus\_of\_resistance
* electromotive force
    * volt
    * volts
    * V
    * abvolt
    * emu\_of\_electric\_potential
    * abvolts
    * emus\_of\_electric\_potential
    * statvolt
    * esu\_of\_electric\_potential
    * statvolts
    * esus\_of\_electric\_potential
* energy
    * joule
    * joules
    * J
    * watt\_second
    * watt\_seconds
    * watt\_hour
    * watt\_hours
    * ton\_of\_tnt
    * tons\_of\_tnt
    * therm
    * therms
    * us\_therm
    * us\_therms
    * kilowatt\_hour
    * kilowatt\_hours
    * kilocalorie
    * kilocalories
    * calorie
    * calories
    * mean\_kilocalorie
    * mean\_kilocalories
    * mean\_calorie
    * mean\_calories
    * it\_kilocalorie
    * it\_kilocalories
    * it\_calorie
    * it\_calories
    * foot\_poundal
    * foot\_poundals
    * foot\_pound\_force
    * erg
    * ergs
    * electronvolt
    * electronvolts
    * eV
    * british\_thermal\_unit
    * british\_thermal\_units
    * mean\_british\_thermal\_unit
    * mean\_british\_thermal\_units
    * it\_british\_thermal\_unit
    * it\_british\_thermal\_units
* force
    * newton
    * newtons
    * N
    * dyne
    * dynes
    * dyn
    * kilogram\_force
    * kgf
    * kilopond
    * kiloponds
    * kp
    * kip
    * kips
    * ounce\_force
    * ozf
    * poundal
    * poundals
    * pound\_force
    * lbf
    * ton\_force
* illuminance
    * lux
    * lx
    * lumens\_per\_square\_metre
    * lumens\_per\_square\_meter
    * lumen\_per\_square\_metre
    * lumen\_per\_square\_meter
    * phot
    * phots
    * ph
    * lumens\_per\_square\_foot
    * footcandle
    * lumen\_per\_square\_foot
    * footcandles
* inductance
    * henry
    * henrys
    * H
    * abhenrys
    * emus\_of\_inductance
    * abhenry
    * emu\_of\_inductance
    * stathenrys
    * esus\_of\_inductance
    * stathenry
    * esu\_of\_inductance
* information storage
    * bit
    * bits
    * b
    * byte
    * bytes
    * B
    * nibbles
    * nybbles
* luminous flux
    * lumen
    * lumens
    * lm
* luminous intensity
    * candela
    * candelas
    * cd
* magnetic flux
    * webers
    * Wb
    * maxwells
    * Mx
    * unit\_poles
* magnetic inductance
    * tesla
    * teslas
    * T
    * gamma
    * gammas
    * gauss
    * Gs
    * G
* mass
    * gram
    * gramme
    * grams
    * grammes
    * g
    * carat
    * carats
    * ounce
    * ounces
    * oz
    * pennyweight
    * pennyweights
    * dwt
    * pound
    * pounds
    * lb
    * lbs
    * troy\_pound
    * apothecary\_pound
    * troy\_pounds
    * apothecary\_pounds
    * slug
    * slugs
    * assay\_ton
    * assay\_tons
    * AT
    * metric\_ton
    * metric\_tons
    * ton
    * tons
    * short\_tons
* power
    * watt
    * watts
    * W
    * british\_thermal\_unit\_per\_hour
    * british\_thermal\_units\_per\_hour
    * it\_british\_thermal\_unit\_per\_hour
    * it\_british\_thermal\_units\_per\_hour
    * british\_thermal\_unit\_per\_second
    * british\_thermal\_units\_per\_second
    * it\_british\_thermal\_unit\_per\_second
    * it\_british\_thermal\_units\_per\_second
    * calorie\_per\_minute
    * calories\_per\_minute
    * calorie\_per\_second
    * calories\_per\_second
    * erg\_per\_second
    * ergs\_per\_second
    * foot\_pound\_force\_per\_hour
    * foot\_pound\_force\_per\_minute
    * foot\_pound\_force\_per\_second
    * horsepower
    * boiler\_horsepower
    * electric\_horsepower
    * metric\_horsepower
    * uk\_horsepower
    * water\_horsepower
    * kilocalorie\_per\_minute
    * kilocalories\_per\_minute
    * kilocalorie\_per\_second
    * kilocalories\_per\_second
    * ton\_of\_refrigeration
    * tons\_of\_refrigeration
* pressure
    * pascal
    * pascals
    * Pa
    * atmosphere
    * atmospheres
    * technical\_atmosphere
    * technical\_atmospheres
    * bar
    * bars
    * centimeter\_of\_mercury
    * centimeters\_of\_mercury
    * centimeter\_of\_water
    * centimeters\_of\_water
    * gram\_force\_per\_square\_centimeter
    * dyne\_per\_square\_centimeter
    * dynes\_per\_square\_centimeter
    * foot\_of\_mercury
    * feet\_of\_mercury
    * foot\_of\_water
    * feet\_of\_water
    * inch\_of\_mercury
    * inches\_of\_mercury
    * inch\_of\_water
    * inches\_of\_water
    * kilogram\_force\_per\_square\_centimeter
    * kilogram\_force\_per\_square\_meter
    * kilogram\_force\_per\_square\_millimeter
    * kip\_per\_square\_inch
    * kips\_per\_square\_inch
    * ksi
    * millibar
    * mbar
    * millibars
    * mbars
    * millimeter\_of\_mercury
    * millimeters\_of\_mercury
    * millimeter\_of\_water
    * millimeters\_of\_water
    * poundal\_per\_square\_foot
    * poundals\_per\_square\_foot
    * pound\_force\_per\_square\_foot
    * pound\_force\_per\_square\_inch
    * psi
    * torr
    * torrs
* radioactivity
    * becquerel
    * becquerels
    * Bq
    * curie
    * curies
    * Ci
* temperature
    * kelvin
    * K
    * celsius
    * centrigrade
    * degree\_celsius
    * degree\_centrigrade
    * degrees\_celsius
    * degrees\_centrigrade
    * fahrenheit
    * degree\_fahrenheit
    * degrees\_fahrenheit
    * rankine
    * rankines
* time
    * second
    * seconds
    * s
    * minute
    * minutes
    * min
    * sidereal\_minute
    * sidereal\_minutes
    * hour
    * hours
    * hr
    * sidereal\_hour
    * sidereal\_hours
    * day
    * days
    * sidereal\_day
    * sidereal\_days
    * shake
    * shakes
    * year
    * years
    * sidereal\_year
    * sidereal\_years
    * tropical\_year
    * tropical\_years
* volume
    * litre
    * liter
    * litres
    * liters
    * l
    * L
    * barrel
    * barrels
    * bushel
    * bushels
    * cubic\_meter
    * cubic\_meters
    * cup
    * cups
    * imperial\_fluid\_ounce
    * imperial\_fluid\_ounces
    * ounce
    * ounces
    * fluid\_ounce
    * fluid\_ounces
    * imperial\_gallon
    * imperial\_gallons
    * gallon
    * gallons
    * imperial\_gill
    * imperial\_gills
    * gill
    * gills
    * gi
    * pint
    * pints
    * liquid\_pint
    * liquid\_pints
    * quart
    * quarts
    * liquid\_quart
    * liquid\_quarts
    * tablespoon
    * tablespoons
    * teaspoon
    * teaspoons

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

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。