Ziffer is a simple number formatting library for Node.js (current stable version 3.0.0) that supports customizable decimal and thousands separators, prefixes/suffixes, negative number styles (left, right, parentheses), digit grouping, custom digits (e.g., Arabic numerals), and per-call option overrides. It offers a straightforward API with no dependencies, making it a lightweight alternative to Intl.NumberFormat. Released under MIT, it is suitable for formatting currencies, large numbers, and locale-specific outputs.
npm install zifferNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creating a Euro formatter with default options and formatting a positive and negative number.
Replace new ziffer(options) with ziffer(options).
Add { decimal: '.' } to options if period is desired.Set group_except to a value less than or equal to the number of integer digits to force grouping.
Remove 'new': const fmt = ziffer(options);
Ensure you call ziffer(options) to get a formatter object, then call .format().
Pass { decimal: '.', thousands: ',' } to match US/UK locale.No dependency data recorded yet.