usd-formatter

JSON →
library 1.0.1 ·javascript
verified Jun 4, 2026

A lightweight, zero-dependency JavaScript library for formatting numbers and strings into USD currency strings. Current stable version is 1.0.1, last released in 2018. It accepts any string or number input and outputs a formatted string with a dollar sign, commas, and two decimal places. Options include prepending a symbol (default $). This is a simple, no-frills formatter for basic USD formatting without locale support or advanced configuration.