idnumbers
    Preparing search index...

    Interface InputMask

    A country's input masks, in this library's vocabulary and in forms libraries use.

    interface InputMask {
        countryCode: string;
        imask: { mask: string }[];
        masks: string[];
        pattern: RegExp;
    }
    Index
    countryCode: string

    The alpha-3 code the country code resolved to.

    imask: { mask: string }[]

    The same masks in imask's pattern syntax (0 a digit, a a letter, * any character), as imask's dynamic-mask list: IMask(input, { mask: imask }).

    masks: string[]

    One mask per compact length the ID comes in. Tokens: # a digit, L a letter, X a letter or a digit, * any character except whitespace; every other character is a separator.

    pattern: RegExp

    Matches an ID written in any of the masks, in uppercase: the form formatId() returns. Usable as react-hook-form's pattern rule.