luhn_validate | Generic Luhn check-digit validation. Native-first. |
cc_validate | Validate a payment-card number via the Luhn checksum. |
cc_format | Group a valid payment-card number (Amex 4-6-5, else 4-4-4-4). |
cc_mask | Mask a payment-card number to stars plus the last 4 digits. |
cc_brand | Detect the card brand (visa / mastercard / amex / …) or null. Native-first. |
iban_validate | Validate an IBAN via structural checks plus the ISO 7064 mod-97 check. |
iban_format | Group a valid IBAN into 4-char blocks; null for invalid input. |
swift_validate | Validate a SWIFT / BIC code via structural checks (length 8 or 11). |
swift_format | Normalize a valid SWIFT / BIC code to uppercase (spaces stripped); null if invalid. |
aba_validate | Validate a US ABA bank routing number (9 digits plus the checksum). |
vat_validate | Validate an EU VAT number (country prefix, length, and checksum). |
vat_format | Normalize a valid EU VAT number to its compact uppercase form. |
ein_format | Normalize an EIN to XX-XXXXXXX format. Native-first. |
cusip_validate | Validate a CUSIP. Native-first. |
cusip_format | Standardize CUSIP identifiers (9 chars, uppercase). |
isin_validate | Validate an ISIN (ISO 6166). Native-first. |
ean_validate | Validate an EAN-8, UPC-A, or EAN-13 via its GTIN mod-10 checksum. |
isbn_validate | Validate an ISBN-10 or ISBN-13 via its checksum. |
isbn_normalize | Canonicalize a valid ISBN-10/13 to its 13-digit form; null if invalid. |
imei_validate | Validate an IMEI (15 digits plus the Luhn checksum). |
sku_normalize | Normalize SKU identifiers (uppercase, strip whitespace, remove special chars). |
mls_normalize | Normalize MLS listing IDs (uppercase, strip whitespace). |
ssn_format | Normalize an SSN to XXX-XX-XXXX format. Native-first. |
ssn_mask | Mask an SSN to ***-**-XXXX (last 4 visible). Native-first. |
ssn_validate | Validate a US Social Security Number. Returns True / False / None. |
npi_validate | Validate a US NPI. Native-first. |
icd10_format | Standardize ICD-10 codes (uppercase, insert dot after the 3rd char). |
account_mask | Mask account numbers, showing only the last 4 digits. |