Saltar al contenido principal

dr-utils

Zero-dependency TypeScript utilities for the Dominican Republic

Easy to Use

Validators

Validate Dominican cédulas, RNCs, NCFs, phone numbers, and license plates using the Luhn algorithm and official DGII data.

Focus on What Matters

Formatters & Masks

Format identifiers with or without dashes, display Dominican Peso amounts, and redact sensitive digits from cédulas, RNCs, and phone numbers.

Powered by React

Parsers & Helpers

Parse identifiers into structured objects, convert amounts to Spanish words, and calculate ITBIS (Dominican VAT) with a single function call.