nationid - v0.6.0
    Preparing search index...

    Function toMrzField9

    Public algorithm primitives. Tree-shakable subpath: nationid/algorithms.

    Each function is a pure mathematical primitive with cited spec.

    • Right-pad a printed passport number to the 9-char MRZ field with <. Useful when the issued number is shorter than 9 chars.

      Throws on inputs longer than 9 chars or containing non-MRZ characters (after uppercasing). Lowercase letters are uppercased before validation.

      Parameters

      • printed: string

      Returns string