nationid - v2.2.1
    Preparing search index...

    Function format

    • Format a Mexican (MX) document into its canonical display form.

      Parameters

      • code:
            | "MX_CURP"
            | "MX_RFC_PF"
            | "MX_RFC_PM"
            | "MX_CLAVE_ELECTOR"
            | "MX_NSS"
            | "MX_PASAPORTE"
            | ShortCode

        MX document type or short alias.

      • input: string

        Raw document string.

      Returns string

      Canonical formatted representation.