### Browser Usage Example Source: https://github.com/antronic/thai-baht-text-js/blob/master/README.md Demonstrates how to use the ThaiBahtText function in a web browser by including the UMD-compatible script. The function is globally available after the script is loaded. ```html ... ``` -------------------------------- ### Install Thai Baht Text JS via npm Source: https://github.com/antronic/thai-baht-text-js/blob/master/README.md Installs the library using npm. This is the recommended method for Node.js projects. ```bash npm install thai-baht-text --save ``` -------------------------------- ### Install Thai Baht Text JS via yarn Source: https://github.com/antronic/thai-baht-text-js/blob/master/README.md Installs the library using yarn. This is an alternative package manager installation method. ```bash yarn add thai-baht-text ``` -------------------------------- ### Node.js Usage Example Source: https://github.com/antronic/thai-baht-text-js/blob/master/README.md Shows how to import and use the ThaiBahtText function in a Node.js environment using both CommonJS and ES Module syntax. It demonstrates converting both integer and decimal numbers. ```javascript // ----CommonJS---- const ThaiBahtText = require('thai-baht-text') // for CommonJS // ----ES Module---- import ThaiBahtText from 'thai-baht-text' let money = 10050 let moneyText = ThaiBahtText(money) console.log(moneyText) // OUTPUT: หนึ่งหมื่นห้าสิบบาทถ้วน money = 12345678988888.50 console.log(ThaiBahtText(money)) // OUTPUT: สิบสองล้านล้านสามแสนสี่หมื่นห้าพันหกร้อยเจ็ดสิบแปดล้านเก้าแสนแปดหมื่นแปดพันแปดร้อยแปดสิบแปดบาทห้าสิบสตางค์ ``` -------------------------------- ### Basic Number to Thai Baht Text Conversion Source: https://github.com/antronic/thai-baht-text-js/blob/master/README.md Demonstrates the fundamental conversion of a number to its Thai Baht text representation. This is the primary function of the library. ```javascript > 10050 // หนึ่งหมื่นห้าสิบบาทถ้วน ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.