amount

JSON →
library 1.0.6 ·javascript
verified Jun 4, 2026

Lightweight library for formatting amounts and currencies in JavaScript. Version 1.0.6 provides two main functions: `amount()` for number formatting with customizable decimal and thousands separators, and `amount.currency()` for locale-based or fully custom currency formatting. It supports all major currencies (EUR, USD, etc.) with automatic symbol placement and spacing. The package is dependency-free, uses CJS (CommonJS) modules, and is available via npm. Updated infrequently; last release in 2022.