UNPKG

masked-input-utils-ts

Version:

Reusable masking utility for PAN, Aadhar, CVV, Mobile Numbers, Email with TypeScript support

11 lines (10 loc) 456 B
export declare function maskPAN(pan: string, showPartial?: boolean): string; export declare function maskAadhar(aadhar: string): string; export declare function maskCVV(cvv: string): string; export declare function maskMobile(mobile: string): string; export declare function maskEmail(email: string): string; export declare function maskGeneric(str: string, options: { unmaskedStart: number; unmaskedEnd: number; maskChar?: string; }): string;