A light and simple library for make all type measures conversions and manipulations. Used convert-units as a reference.
npm install engineering-unit-converter
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
- acceleration
- area
- density
- electricCharge
- electricCurrent
- energy
- force
- length
- massFlow
- mass
- power
- pressureManometric
- pressure
- speed
- standardVolumetricFlow
- surfaceTension
- time
- viscosity
- voltage
- volume
- volumetricFlow