openexchangerates / accounting.js

A lightweight JavaScript library for number, money and currency formatting - fully localisable, zero dependencies.
http://openexchangerates.github.io/accounting.js
MIT License
4.95k stars 528 forks source link

dependencies are not a array #198

Closed ad3000-Starke closed 2 years ago

ad3000-Starke commented 6 years ago

The Line ""dependencies" : []," in the "package.json" causes an error, for example when compiling with electron.

zdanowiczkonrad commented 5 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 :-)

rasgo-cc commented 3 years ago

@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

dhulme commented 2 years ago

Another option might be to use native currency formatting https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString