Click here for v1.x documentation.
Dinero.js
Dinero.js version

Does Dinero.js support cryptocurrencies?

Dinero.js works with cryptocurrencies like any other currency, as long as they implement the Currency type.

When working with these, you should use bigint or a third-party library like big.js. Cryptos usually have high exponents, making them likely to exceed the range of safe JavaScript integers.

The @dinero.js/currencies package doesn't provide ready-made implementations for cryptocurrencies due to their non-normative and unstable nature. Maintaining such a list would be too demanding, so it makes more sense to keep them in userland. If you want to write a Dinero.js-compatible cryptocurrency, you can implement the Currency type.