@potchangelo/money-to-thai-word
TypeScript icon, indicating that this package has built-in type declarations

0.1.0-beta.2 • Public • Published

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

Package Sidebar

Install

npm i @potchangelo/money-to-thai-word

Weekly Downloads

0

Version

0.1.0-beta.2

License

MIT

Unpacked Size

17 kB

Total Files

8

Last publish

Collaborators

  • potchangelo