metiri
v0.0.15
Published
Simple unit conversion utility.
Downloads
24
Maintainers
Readme
metiri
Simple unit conversion utility.
Supported conversions:
- area
- distance
- mass
- pressure
- speed
- temperature
- time
- volume
Main Goals
- Have a simple API
- Be easy to maintain
- Be modular
- Be compatible with other frameworks
- Be unit tested
- Work in multiple environments (IE6+, modern browsers, node.js)
To Use
node.js
var metiri = require('metiri')
metiri.mass.gram(1000).kilogram().value() // 1
metiri.mass.gram(1000).kilogram().gram().value() // 1000
Todo
- Switch mass base unit (gram) to SI unit (kilogram)
- Documentation
- Support other area units:
- ancient-roman, chinese, japanese, natural, old-french, old-russian, old-spanish, thai
- Support other distance units:
- ancient-greek, ancient-roman, astronomical, biblical, chinese, computer-equipment, geographical, japanese, nautical, old-french, old-russian, old-spanish-portuguese, optical, thai, typographical-ata, typographical-didot
- Support other mass units:
- ancient-greek, ancient-roman, apothecaries, bahai-faith, biblical, chinese, hong-kong, japanese, old-french, old-german, old-russian, thai, troy
- Support other pressure units:
- atmosphere, mercury, natural, water
- Support other volume units:
- japanese, chinese, thai, old-russian (liquid/dry), old-french, ancient-roman (liquid/dry), biblical (liquid/dry)
Credits/Influences
- convert-me.com
- MeasurementJs
- Michael Kedzierski - API suggestions
License
Released under the MIT License.