UNPKG

maskfy

Version:

A Javascript library without a dependency of jQuery, Zepto, and etc ... Very simple to install and use. With only 1kb (gzip) code, it's also well accepted on mobile devices

20 lines (16 loc) 483 B
export interface IMaskfyOptions { mask?: string; reverse?: boolean; keybind?: { [key: string]: RegExp }; prefix?: string; suffix?: string; } export interface IMaskfyOptionsResponse { mask: string; reverse: boolean; keybind: { [key: string]: RegExp }; prefix: string; suffix: string; } declare function maskfy(value: string, options?: IMaskfyOptions): string; declare function maskfySettings(options: IMaskfyOptions): IMaskfyOptionsResponse;