Skip to content

Overview & Quick Start

Persian and Iranian utilities

@nexload-sdk/persian

v1.1.0 Released

Zero-dependency Persian and Iranian utilities: digits, text, mobile, national code, bank, money, Jalali dates.

Examples follow workspace source. Check pending Changesets against your installed version.

Normalize input and format output with explicit units and time zones.

import { normalizeIranMobile } from "@nexload-sdk/persian/mobile";
import { money, formatMoney } from "@nexload-sdk/persian/money";
import { formatJalali } from "@nexload-sdk/persian/date";
const mobile = normalizeIranMobile("۰۹۱۲۳۴۵۶۷۸۹");
const price = formatMoney(money(12500, "IRR"));
const date = formatJalali("2024-03-20T12:00:00+03:30");
Terminal window
pnpm add @nexload-sdk/persian

For the optional ./zod subpath, install zod separately.

RuntimeRequirements
Node.js20 or newer
Bun, Edge, browserIntl timezone data for dates
Zod subpathZod 4.1 or newer, below 5, installed separately

The core has no runtime dependencies.

  • Normalize and validate Iranian identifiers and bank details.
  • Format money with explicit units and Jalali dates in a chosen timezone.
  • Search Persian text and look up provinces.

See guides and the API inventory.

Optimization

Agent usage

Playground