1.0.0-alpha.7 • Published 6 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-converteror using yarn:
yarn add @helixnetwork/unit-converterAPI 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
6 years ago
1.0.0-alpha.6
6 years ago
1.0.0-alpha.5
6 years ago
1.0.0-alpha.4
6 years ago
1.0.0-alpha.3
6 years ago
1.0.0-alpha.2
6 years ago
1.0.0-alpha.1
7 years ago
1.0.0-alpha.0
7 years ago
0.0.1-alpha.1
7 years ago