A simple JavaScript library for currency formatting that uses ISO 4217 currency codes. Version 0.1.4 is the latest stable release (no recent updates). It formats currencies based on rules from the currency-format package without requiring additional formatting arguments. Differentiators include support for fraction size, HTML output for bidirectional text, and simple formatting with custom symbols. It is compatible with Node.js, Browserify, Webpack, and browsers via UMD.
npm install money-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage of format and formatSimple with different currencies and options.
Verify currency-format package is up-to-date or manually patch currency data.
Always specify fractionSize if you need explicit control, or ensure currency is in the dataset.
If you need symbols and proper formatting, do not set useAlphaCode to true.
Run 'npm install money-formatter' which installs dependencies automatically, or manually install currency-format.
Use default import: import moneyFormatter from 'money-formatter' or require: const moneyFormatter = require('money-formatter').