1 |
|
2 | ## Acknowledgements
|
3 |
|
4 | Support both js and ts
|
5 |
|
6 | This library is free software. We just make it easier for us to get the thai baht.
|
7 |
|
8 | ## Getting Started
|
9 |
|
10 | Send in the number to get thai baht result in string format
|
11 |
|
12 | ## Installation
|
13 |
|
14 | using yarn
|
15 | ```
|
16 | yarn add @to-da-moon/thai-baht-lib
|
17 | ```
|
18 | using npm
|
19 | ```
|
20 | npm i @to-da-moon/thai-baht-lib
|
21 | ```
|
22 |
|
23 | ## Example Usage
|
24 |
|
25 | ```
|
26 | bahtText(1)
|
27 | // return thai baht text format
|
28 | // e.g. 1 -> หนึ่งบาทถ้วน
|
29 | ```
|
30 |
|
31 | ```
|
32 | bahtText(100)
|
33 | // return thai baht text format
|
34 | // e.g. 100 -> หนึ่งร้อยบาทถ้วน
|
35 | ```
|
36 |
|
37 | ## Plan
|
38 |
|
39 | - [ ] Let me know what to upgrade, just create issue for us, we will do it.
|