Skip to content

beholdr/maska

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
December 7, 2022 11:41
January 21, 2023 11:13
src
January 29, 2023 16:59
January 29, 2023 16:59
December 4, 2022 17:05
December 4, 2022 17:05
December 4, 2022 17:05
December 4, 2022 17:05
January 21, 2023 12:50
January 29, 2023 17:21
January 29, 2023 17:21
December 4, 2022 17:05
December 4, 2022 17:05

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