0.1.1 • Published 2 years ago

numbaht v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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