persian — Optimization
Keep currency units explicit
Section titled “Keep currency units explicit”Use integer amounts and specify IRR or IRT. parseMoney rejects decimal strings and unsafe integers.
Check the calendar boundary
Section titled “Check the calendar boundary”Supported Jalali years run from 1 to 3176. Conversion functions can throw a RangeError outside this range.
Plan money conversion rounding
Section titled “Plan money conversion rounding”When a display-unit conversion is not divisible, formatMoney keeps the source unit unless a rounding mode is supplied. convertMoney throws without rounding.
Provide timezone data
Section titled “Provide timezone data”Timezone conversion in ./date and ./relative requires host Intl timezone data. The package supports Node.js, Bun, Edge, and browsers.