SL Currency Formatter

JSON →
library 1.1.2 ·javascript
verified Jun 4, 2026

A simple JavaScript/TypeScript library for formatting numbers as Sri Lankan Rupees (LKR). Current stable version 1.1.2, single release to date. Supports comma-separated output, cents display, language-prefixed output (English, Sinhala, Tamil), and custom prefix/suffix codes. Minimal zero-dependency utility focused on LKR formatting, unlike generic formatters (e.g., Intl.NumberFormat).