1.0.0-alpha.7 • Published 5 years ago
@helixnetwork/unit-converter v1.0.0-alpha.7
@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
1.0.0-alpha.7
5 years ago
1.0.0-alpha.6
5 years ago
1.0.0-alpha.5
5 years ago
1.0.0-alpha.4
5 years ago
1.0.0-alpha.3
5 years ago
1.0.0-alpha.2
5 years ago
1.0.0-alpha.1
5 years ago
1.0.0-alpha.0
5 years ago
0.0.1-alpha.1
5 years ago