• Stars
    star
    1,034
  • Rank 44,573 (Top 0.9 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created about 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple zero-dependency input mask for Vue.js and vanilla JS.

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