UNPKG

mask-any-number

Version:

Apply flexible numeric masks to any string. Perfect for phone numbers, documents, and custom input formatting.

11 lines (10 loc) 253 B
interface Country { iso2: string; name: string; flag: string; countryCode: string; masks?: string[]; } export declare const countries: Country[]; export declare function maskNumber(value: string, masks: string[]): string; export {};