number-to-khmer-words
v1.0.4
Published
Convert numbers to Khmer words for currency based on naturally spoken language.
Downloads
549
Maintainers
Readme
number-to-khmer-words
Convert numbers into Khmer words, supporting both natural/common reading and formal reading styles. Ideal for currencies, invoices, wedding gifts, or any Khmer numeric display.
Features
- Convert numbers to Khmer words, e.g.,
125200 → ម្ភៃម៉ឺនប្រាំពាន់ពីររយ. - Supports two reading styles:
- Common / natural: most widely used in daily speech (
ម្ភៃម៉ឺនប្រាំពាន់ពីររយ). - Formal / standard: strict Khmer numeric style (
ពីរសែនប្រាំពាន់ពីររយ).
- Common / natural: most widely used in daily speech (
- Works with numbers up to hundreds of thousands (can extend further if needed).
- TypeScript ready.
Installation
npm install number-to-khmer-words