Dinero.js
Immutable, type-safe library for creating, calculating, and formatting monetary values.
Why consider Dinero.js?
Dinero.js is an open-source JavaScript and TypeScript library for precise monetary calculations and multi-currency formatting written by Sarah Dayan. Dinero.js eliminates floating-point rounding errors in eCommerce and billing apps by using immutable integer arithmetic and custom rounding rules.
Learn Dinero.js by building
Practical setup notes, real use cases, and copy-ready examples in one focused guide.
In this guide2 sections
Overview of Dinero.js
Dinero.js performs accurate financial calculations across multiple global currencies without rounding drift.
Quickstart
npm install dinero.js@alpha @dinero.js/currencies@alphaimport { dinero, add } from 'dinero.js';import { USD } from '@dinero.js/currencies';const price1 = dinero({ amount: 500, currency: USD });const price2 = dinero({ amount: 250, currency: USD });const total = add(price1, price2);Dinero.js is licensed under the permissive MIT License.
Related tools
More options with a similar category or technology profile.
activecampaign-api-php
Official ActiveCampaign PHP API client for marketing automation and deal pipelines.
klaviyo-api-python
Official Python SDK for the Klaviyo E-commerce Marketing Automation API.
klaviyo-api-node
Official Node.js SDK for the Klaviyo E-commerce Marketing Automation API.
hubspot-api-python
Official Python client for the HubSpot CRM & Marketing Automation REST APIs.