tanisa 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,32 +18,34 @@
|
|
|
18
18
|
|
|
19
19
|
## Installation
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
```js
|
|
22
|
+
yarn add tanisa
|
|
23
|
+
```
|
|
22
24
|
|
|
23
25
|
## Usage
|
|
24
26
|
|
|
25
27
|
1. Import the Magic:
|
|
26
28
|
|
|
27
|
-
```
|
|
29
|
+
```ts
|
|
28
30
|
import { Tanisa } from 'tanisa'
|
|
29
31
|
```
|
|
30
32
|
|
|
31
33
|
2. Simply use it:
|
|
32
34
|
|
|
33
|
-
```
|
|
34
|
-
const tanisa = new Tanisa()
|
|
35
|
+
```ts
|
|
36
|
+
const tanisa = new Tanisa()
|
|
35
37
|
|
|
36
38
|
tanisa.toWords(233)
|
|
37
39
|
```
|
|
38
40
|
|
|
39
41
|
3. Examples:
|
|
40
42
|
|
|
41
|
-
```
|
|
42
|
-
tanisa.toWords(233)
|
|
43
|
-
tanisa.toWords(18.3)
|
|
44
|
-
tanisa.toWords(0.008)
|
|
43
|
+
```js
|
|
44
|
+
tanisa.toWords(233) // Telo amby telopolo sy roanjato
|
|
45
|
+
tanisa.toWords(18.3) // Valo amby folo faingo telo
|
|
46
|
+
tanisa.toWords(0.008) // Aotra faingo aotra aotra valo
|
|
45
47
|
|
|
46
|
-
tanisa.toWords(12_345_678_901)
|
|
48
|
+
tanisa.toWords(12_345_678_901) // iraika amby sivinjato sy valo arivo sy fito alina sy enina hetsy sy dimy tapitrisa sy efatra safatsiroa sy telo tsitamboisa sy roa lavitrisa sy iray alinkisa
|
|
47
49
|
```
|
|
48
50
|
|
|
49
51
|
## Options
|
|
@@ -57,12 +59,12 @@ tanisa.toWords(12_345_678_901) ==> iraika amby sivinjato sy valo arivo sy fito a
|
|
|
57
59
|
|
|
58
60
|
Examples:
|
|
59
61
|
|
|
60
|
-
```
|
|
61
|
-
tanisa.toWords("456.789", { ignoreDecimal: true })
|
|
62
|
+
```js
|
|
63
|
+
tanisa.toWords("456.789", { ignoreDecimal: true }) // Enina amby dimampolo sy efajato
|
|
62
64
|
|
|
63
|
-
tanisa.toWords("3.14567", { decimalPlaces: 2 });
|
|
65
|
+
tanisa.toWords("3.14567", { decimalPlaces: 2 }); // Telo faingo efatra amby folo
|
|
64
66
|
|
|
65
|
-
tanisa.toWords("3.14567", { decimalPlaces: 2, ignoreDecimal: true }); ==> Telo
|
|
67
|
+
tanisa.toWords("3.14567", { decimalPlaces: 2, ignoreDecimal: true }); ==> // Telo
|
|
66
68
|
```
|
|
67
69
|
|
|
68
70
|
## Contribution
|