@codeshumon/number-to-words
v1.0.3
Published
Convert numbers to spoken words with accurate currency formatting for over 100 countries
Maintainers
Readme
Table of Contents
Features ✨
Installation 📦
Basic Usage 🔢
Convert Numbers to Words (Node.js CommonJS - main field)
Convert Number to Currency Words 💰
ES Module Usage (via module field)
Browser Usage 🌐 (via CDN using browser field)
Use Directly in HTML
Include the script in your HTML:
Then, you can access the functions globally:
Advanced Usage 🛠️
Handling Negative Numbers
Large Number Support
Advanced toWords Examples
Advanced toCurrencyWords Examples
ES Module Usage (via module field)
Browser Usage 🌐 (via CDN using browser field)
Use Directly in HTML
API Reference & Options 📚
Options for toWords & toCurrencyWords
Option Effects Examples
🌍 Supported Countries
TypeScript Support ✅
const amount: string = toCurrencyWords(123.45, 'US' as CountryCode);
Benchmarks ⚡
Browser Compatibility 🌐
Contributing 🤝
License 📄
