@syandev/currency-formatter-js
v1.0.2
Published
Flexible currency formatter by Syan Dev Studio — supports patterns like Rp|#.###,## and auto locale detection.
Maintainers
Readme
💰 CurrencyFormatter.js
by Syan Dev Studio
Lightweight, zero-dependency currency formatter for JavaScript.
Supports custom patterns (e.g.Rp|#.###,##), locale auto-detection, and negative styles.
⚙️ Features
- 🪙 Prefix/suffix pattern:
Rp|#.###,##or#,###.##|USD - 🌍 Auto locale detection (
id-ID,en-US,ja-JP, etc.) - ➕ Negative formatting (
-or( )) - ⚡ Supports both Browser (CDN) and ES Modules (React/Vite)
- 🧩 Written and maintained by Syan Dev Studio
📦 Installation
🧱 NPM
npm install @syandev/currency-formatter-js