engineering-unit-converter
v0.0.13
Published
engineering-unit-converter =============
Downloads
215
Maintainers
Readme
engineering-unit-converter
A light and simple library for make all type measures conversions and manipulations. Used convert-units as a reference.
Installation
npm install engineering-unit-converter
Usage
engineering-unit-converter
uses TypeScript to infer the available units, I strongly recommend using it for making the dev experience better.
Using this library is simple, the above snippet shows an example:
import { massFlow } from 'engineering-unit-converter'
const newValue = massFlow(65000).from('lb/day').to('kg/h')
console.log(newValue) //1228.4818798922718
Available units
- acceleration
- area
- density
- electricCharge
- electricCurrent
- energy
- force
- length
- massFlow
- mass
- power
- pressureManometric
- pressure
- speed
- standardVolumetricFlow
- surfaceTension
- time
- viscosity
- voltage
- volume
- volumetricFlow