Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

maska

beholdr779.2kMIT3.1.1TypeScript support: included

Simple zero-dependency input mask for Vanilla JS, Vue, Alpine.js and Svelte

mask, inputmask, alpinejs, svelte, vue

readme

Simple zero-dependency input mask.

Documentation & demo

Maska

Support ☕️

❤️ Please support Maska development!

Features ✨

  • No dependencies and small size: ~3 Kb gziped
  • Vanilla JS version + Vue 2/3, Alpine.js and Svelte integrations
  • Works with native and custom inputs
  • Custom tokens with modifiers, transform functions and hooks
  • Number mask mode: easy money formatting
  • Dynamic, reversed and eager masks

What’s new in v3 🎉

  • Integrations with Alpine.js and Svelte
  • Number mask mode
  • Simplified directive format
  • Other small improvements and fixes

Source of Inspiration 💡

License 📄

MIT