Currency.js: Detailed Overview & Metrics

v2.0.4(about 3 years ago)

This package was last published over a year ago. It may not be actively maintained.Types definitions are bundled with the npm packageNumber of direct dependencies: 0Monthly npm downloads

currency.js is a tiny and lightweight JavaScript library that provides simple currency formatting and conversion capabilities. It supports over 150 currency symbols and formats and makes it easy to work with currencies in your project. With currency.js, you can handle operations like addition, subtraction, and multiplication of multiple currencies easily. It also supports custom rounding rules, automatic and explicit conversion between currencies, and precision for decimal places.

Compared to other more complex currency libraries like accounting.js and money.js, currency.js is simpler to use and has a more user-friendly and intuitive API. It is actively maintained and has a small package size, making it an excellent choice for small to medium-sized projects.

Alternatives: accounting.js, money.js, dinero.js

Tags: javascriptcurrencyformattingconversiondecimal-places