Package detail

amount-to-words-js

jianshangquan11ISC1.0.1

Convert amount in letter.

amount to words, converter

readme

Amount to words

Convert amount in letter.

About

This repository is combined 3 languages converter into single package\ Wrap two library from npm package and add support for burmese language

For Chinese language: number-to-chinese-words\ For English language: amount-to-words\ For Burmese language: my own source code

    const {AmountToWords, AmountConversion} = require('amount-to-words');

    let output = AmountToWords.convertTo(123456789, AmountConversion.BURMESE);
    // output => တစ်ထောင်နှစ်ရာသုံးဆယ့်လေးသိန်းငါးသောင်းခြှောက်ထောင်ခုနှစ်ရာရှစ်ဆယ့်ကိုးကျပ်
    ...
    let output = AmountToWords.convertTo(123456789, AmountConversion.ENGLISH);
    // output => Twelve Crore Thirty Four Lakh Fifty Six Thousand Seven Hundred And Ninety Eight
    ...
    let output = AmountToWords.convertTo(123456789, AmountConversion.CHINESE);
    // output => 一億二千三百四十五萬六千七百九十八

Max convertable amount in different language

Language Max convertable Digit
Burmese < 10000000000000 13 digit
English < 1000000000 9 digit
Chinese < 100000000 8 digit

Ported languages

Java: https://github.com/jianshangquan/AmountToWordsJava \ Javascript: https://github.com/jianshangquan/AmountToWordsJavascript \ Dart: https://github.com/jianshangquan/AmountToWordsDart \ Rust: https://github.com/jianshangquan/AmountToWordsRust