nationid - v2.2.1
    Preparing search index...

    Function normalize

    • Normalize a Peruvian (PE) document by stripping separators and casing.

      Parameters

      • code: "PE_DNI" | "PE_CE" | "PE_RUC" | "PE_PASAPORTE" | ShortCode

        PE document type or short alias.

      • input: string

        Raw document string.

      Returns string

      Storage-friendly normalized representation.