Simple zero-dependency input mask for Vue 2/3 or vanilla JS.
Starting in version 2.1.6, this package is no longer compatible with Webpack 4 due to the use of nullish coalescing and optional chaining operators.
This fork has been created to change the build target to ES2016 so it can be used as a subdependency in Nuxt 2.
Do you like Maska? Please support me via Boosty.
- No dependencies and small size: ~2.5 Kb gziped
- Works with any native input
- Ability to define custom tokens
- Dynamic, reversed and eager masks
- Token modifiers, transform functions and hooks
- Fully rewritten in TypeScript
- Autobind to vue variable
- Eager and reversed masking modes
- Optonal and repeated tokens
- Simplified syntax for custom tokens
- Dynamic masks with custom function logic
- Hooks for pre/post- processing
- Ability to replace or merge custom tokens