maska

Simple zero-dependency input mask for Vue 2/3 or Vanilla JS

  • maska

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
maska
1,133102.1.114 months ago5 years agoMinified + gzip package size for maska in KB

Readme


Simple zero-dependency input mask for Vue 2/3 or vanilla JS.



Documentation & demo

Maska

Support β˜•οΈ

Do you like Maska? Please support me via Boosty.

Features ✨

  • 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

What’s new in v2 πŸŽ‰

  • 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

Source of Inspiration πŸ’‘

License πŸ“„

MIT