# openexchangerates/accounting.js

A lightweight JavaScript library for number, money and currency formatting - fully localisable, zero dependencies.

Repository: https://github.com/openexchangerates/accounting.js
Canonical: https://ross.abutalabs.com/products/accountingjs
Homepage: http://openexchangerates.github.io/accounting.js
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2024-03-05T09:57:55+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5491, "days_push": 911, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4979, forks 521 (observed 2026-08-28T04:09:04.154810+00:00)

## What it is
A tiny, dependency-free JavaScript library for parsing and formatting numbers, money, and currency values, with full localisation support and spreadsheet-style column alignment. It works both client-side and server-side, usable standalone or as an npm/AMD module.

## Use cases
- format numbers as currency strings in JavaScript
- parse localized money strings back into numbers
- format currency columns so symbols and decimals line up
- display European vs US number formats
- format money in a Node.js backend
- localize currency symbols and separators

## When to choose
- you need lightweight, zero-dependency number/money formatting in JS
- you need client- and server-side consistent currency display
- you need to parse user-entered money strings in various locales

## When to avoid
- you need live exchange rate conversion (use money.js or an API instead)
- you need full i18n/Intl-based formatting (use the built-in Intl.NumberFormat)
- you need an actively developed library with modern ESM support

## Facets
- artifact type: library
- maturity: maintenance
- function: serialization, internationalization
- domain: web-development, frontend, fintech
- platform: browser, cross-platform
- tags: currency-formatting, money, number-formatting, zero-dependencies, localization, nodejs, javascript

## Member repositories
- openexchangerates/accounting.js (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:04.154810+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:17:42.807041+00:00, confidence not recorded.
  - readme: https://github.com/openexchangerates/accounting.js (fetched 2026-08-28T04:09:04.154810+00:00, sha 7eda8518559c)
  - homepage: http://openexchangerates.github.io/accounting.js (fetched 2026-08-29T08:59:13.433367+00:00, sha 56e4b74fbf2c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
