numbaht
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i numbaht

Weekly Downloads

3

Version

0.1.1

License

MIT

Unpacked Size

29.3 kB

Total Files

12

Last publish

Collaborators

  • boon4681