
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
thai-baht-text-ts
Advanced tools
Convert number to Thai Baht as Text
แปลง เลข ให้เป็น หน่วยบาทไทย
npm install thai-baht-text-ts --save
yarn add thai-baht-text-ts
const { ThaiBaht } = require('thai-baht-text-ts') // for ES5
let money = 10050
let moneyText = ThaiBaht(money)
console.log(moneyText)
// OUTPUT: หนึ่งหมื่นห้าสิบบาทถ้วน
money = 12345678988888.50
console.log(ThaiBaht(money))
// OUTPUT: สิบสองล้านล้านสามแสนสี่หมื่นห้าพันหกร้อยเจ็ดสิบแปดล้านเก้าแสนแปดหมื่นแปดพันแปดร้อยแปดสิบแปดบาทห้าสิบสตางค์
import { ThaiBaht } from 'thai-baht-text-ts' // for ES6
let money = 10050
let moneyText = ThaiBaht(money)
console.log(moneyText)
// OUTPUT: หนึ่งหมื่นห้าสิบบาทถ้วน
money = 12345678988888.50
console.log(ThaiBaht(money))
// OUTPUT: สิบสองล้านล้านสามแสนสี่หมื่นห้าพันหกร้อยเจ็ดสิบแปดล้านเก้าแสนแปดหมื่นแปดพันแปดร้อยแปดสิบแปดบาทห้าสิบสตางค์
You can use number that doesn't over than 9007199254740991
that is MAX_SAFE_INTEGER of javascript.
คุณสามารถใส่เลขได้ไม่เกิน 9007199254740991
ซึ่งเป็น MAX_SAFE_INTEGER ของ javascript
The Thai-Baht-Text-TS is open-sourced software licensed under the MIT license.
If you found bugs or some missing point, please send pull request back or open an issue.
forked from antronic/thai-baht-text-js
FAQs
Convert number to Thai Bath as Text
The npm package thai-baht-text-ts receives a total of 240 weekly downloads. As such, thai-baht-text-ts popularity was classified as not popular.
We found that thai-baht-text-ts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.