Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

@bakissation/dinar — documentation

A type-safe Algerian Dinar (DZD) money value type for TypeScript.

Start here

  • Overview & concepts — why a money type, the centimes invariant, rounding, and a glossary.
  • Getting started — install, construct amounts, and the common recipes (VAT, splitting, parsing, SATIM minor units).

Reference

  • API reference — every constructor, method, and option on Dinar, plus parseDinar / formatDinar / MoneyError.
  • Architecture — the internals: the integer-centimes invariant, the allocation algorithm, and how parsing/formatting stay correct.

Found something out of date? PRs welcome — see CONTRIBUTING.