engineering-unit-converter
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

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

/engineering-unit-converter/

    Package Sidebar

    Install

    npm i engineering-unit-converter

    Weekly Downloads

    2

    Version

    0.0.8

    License

    MIT

    Unpacked Size

    44.5 kB

    Total Files

    30

    Last publish

    Collaborators

    • alanhaertel