Closed ad3000-Starke closed 2 years ago
I am afraid this library is not maintained. I built a similar tool (initially for our internal needs only, but tinier and works more reliably on price formatting) which fixed the issue you mentioned: number-currency-format - feel free to use it :-)
@ad3000-Starke and everyone that might have the same issue: A fork and a fix for it: https://www.npmjs.com/package/@rasgo/accounting
Or if you came here through the currency-formatter
: https://www.npmjs.com/package/@rasgo/currency-formatter
Another option might be to use native currency formatting https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString
The Line ""dependencies" : []," in the "package.json" causes an error, for example when compiling with electron.