@helixnetwork/unit-converter
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-alpha.7 • Public • Published

@helixnetwork/unit-converter

Converts value across different Helix units.

Installation

Install using npm:

npm install @helixnetwork/unit-converter

or using yarn:

yarn add @helixnetwork/unit-converter

API Reference

<a name="module_unit-converter..convertUnits"></a>

unit-converter~convertUnits(value, fromUnit, toUnit)

Param Type Description
value string | int | float
fromUnit string Name of original value unit
toUnit string Name of unit wich we convert to

Converts accross Helix units. Valid unit names are: h, Kh, Mh, Gh, Th, Ph

Package Sidebar

Install

npm i @helixnetwork/unit-converter

Weekly Downloads

1

Version

1.0.0-alpha.7

License

MIT

Unpacked Size

17.1 kB

Total Files

16

Last publish

Collaborators

  • dzlzv
  • dad1x
  • fsbbn
  • dnck
  • dt93
  • ofo42