dinerojs/dinero.js
Create, calculate, and format money in JavaScript and TypeScript observed · 2026-08-28
Health v2 · maintenance only
90/100
- Activity 99
- Release rhythm 74
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 4
- age_days: 3098
- days_rel: 173
- days_push: 7
- n_releases_24m: 6
Adoption not part of the score
6789 stars · 204 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Dinero.js is a JavaScript and TypeScript library for creating, calculating, converting, comparing, and formatting monetary values safely. It uses immutable objects and integer minor units to avoid floating-point precision issues, with built-in ISO 4217 currency support.
Use cases
- handle money in javascript without floating point errors
- add and subtract currency amounts safely
- format prices for display in a web app
- convert between currencies in typescript
- store monetary values as integers in minor units
- compare monetary amounts in an e-commerce checkout
- support non-decimal currencies with multiple subdivisions
When to choose
- you need precise, immutable monetary arithmetic in JavaScript or TypeScript
- you want tree-shakeable, framework-agnostic money handling with strong type safety
- you need to support many ISO 4217 currencies including non-decimal ones
When to avoid
- you need a full accounting or invoicing system rather than a value library
- your project is not JavaScript/TypeScript based
- you need built-in exchange-rate fetching or payment processing
Facets
library · maturity stable
serialization math developer-tools fintech web-development frontend backend cross-platform browser cross-platform money currency immutable typescript monetary-values iso-4217 tree-shakeable bigint decimal-arithmetic nodejs web-server javascript
4 sources
- readme: https://github.com/dinerojs/dinero.js · fetched 2026-08-28 · 2de4cbd6c3aa
- homepage: https://dinerojs.com · fetched 2026-08-29 · c5e8f6e7f80b
- site_page: https://www.dinerojs.com/getting-started/quick-start · fetched 2026-08-29 · 647dc7f9da36
- registry_npm: https://registry.npmjs.org/dinero.js · fetched 2026-08-29 · eab135429326
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dinerojs/dinero.js | main | 90 |
For agents
markdown · JSON · MCP: product_card(name="dinerojs/dinero.js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem