Overview of imaskjs features and mask types
masterimaskjs is a vanilla JavaScript input mask library with no external dependencies. It supports various mask types and advanced formatting features:
Supported Mask Types
- RegExp mask: Uses regular expressions.
- Function mask: Uses a custom function.
- Number mask: Supports integer and decimal values.
- Date mask: Supports various formats and an
autofixmode. - Dynamic/on-the-fly mask: Masks that change based on input.
- Pattern mask: Advanced pattern matching including:
- Placeholder visibility control.
- Unmasked values containing fixed parts.
- Optional input parts (greedy).
- Custom definitions and reusable blocks.
- Secure text entry.
- Enum and Range masks.
- Repeating blocks.
Key Capabilities
- Easily get and set raw and unmasked values.
- Supports
overwritemode. - Compatible with Web Components and
contenteditableelements. - Pipe: Convert and format values using a pipe mechanism.