Skip to content

boon4681/numbaht

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

numbaht

numbaht license-svg

Convert Thai Baht as Text to Number as Text

Usage

  • Install with npm or yarn

    npm install numbaht
    # or
    yarn add numbaht
  • Example

    import { convert } from 'numbaht';
    
    console.log(convert("สิบห้า")); // 15
    console.log(convert("หนึ่งหมื่นหกพันห้าร้อยสี่สิบห้าล้านหกแสนห้าหมื่นแปดพันแปดร้อยหกสิบสี่")); // 16545658864

Todo list

  • support สตางค์
  • support จำนวนติดลบ
  • support language correction

License

MIT

Releases

No releases published

Packages

No packages published