Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/potchangelo/money-to-thai-word
Convert money, in currency Baht and Satang, to Thai word (Thai or English locale).
https://github.com/potchangelo/money-to-thai-word
nodejs npm npm-package
Last synced: 11 days ago
JSON representation
Convert money, in currency Baht and Satang, to Thai word (Thai or English locale).
- Host: GitHub
- URL: https://github.com/potchangelo/money-to-thai-word
- Owner: potchangelo
- License: mit
- Created: 2022-10-28T06:16:35.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-22T10:06:52.000Z (almost 2 years ago)
- Last Synced: 2024-10-06T22:47:24.078Z (about 1 month ago)
- Topics: nodejs, npm, npm-package
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@potchangelo/money-to-thai-word
- Size: 205 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# money-to-thai-word
Convert money, in currency Baht and Satang, to Thai word (Thai or English locale).
## Install
```
npm install @potchangelo/money-to-thai-word
```## Usage
### CommonJS
```
const { moneyToThaiWord, moneyToThaiWordLocaleEN } = require('@potchangelo/money-to-thai-word');moneyToThaiWord(6543);
// หกพันห้าร้อยสี่สิบสามบาทถ้วนmoneyToThaiWordLocaleEN(635.08);
// Six hundred thirty five baht eight satang
```### ES Module
```
import { moneyToThaiWord, moneyToThaiWordLocaleEN } from '@potchangelo/money-to-thai-word';moneyToThaiWord(5.25);
// ห้าบาทยี่สิบห้าสตางค์moneyToThaiWordLocaleEN(80808);
// Eighty thousand eight hundred eight baht
```