maska
TypeScript icon, indicating that this package has built-in type declarations

2.1.11 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.11
    56,936
    • latest
  • 1.5.2
    18,392
    • stable-v1

Version History

Package Sidebar

Install

npm i maska

Weekly Downloads

126,985

Version

2.1.11

License

MIT

Unpacked Size

21.6 kB

Total Files

11

Last publish

Collaborators

  • beholdr