MCPcopy Index your code
hub / github.com/beholdr/maska

github.com/beholdr/maska @v3.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.2.0 ↗ · + Follow
51 symbols 124 edges 20 files 0 documented · 0% updated 12mo agov3.2.0 · 2025-07-02★ 2,0085 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
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

Extension points exported contracts — how you extend this code

HooksTestContext (Interface)
(no doc)
test/input.test.ts
MaskInputOptions (Interface)
(no doc)
src/input.ts
MaskToken (Interface)
(no doc)
src/tokens.ts
MaskNumber (Interface)
(no doc)
src/mask.ts
MaskaDetail (Interface)
(no doc)
src/input.ts
MaskOptions (Interface)
(no doc)
src/mask.ts

Core symbols most depended-on inside this repo

masked
called by 434
src/mask.ts
unmasked
called by 126
src/mask.ts
setValue
called by 35
src/input.ts
completed
called by 12
src/mask.ts
isEager
called by 11
src/mask.ts
isReversed
called by 8
src/mask.ts
process
called by 5
src/mask.ts
processInput
called by 4
src/input.ts

Shape

Function 21
Method 20
Interface 6
Class 4

Languages

TypeScript100%

Modules by API surface

src/mask.ts14 symbols
src/input.ts14 symbols
src/parser.ts6 symbols
test/input.test.ts3 symbols
src/vue/index.ts3 symbols
src/svelte/index.ts3 symbols
src/number.ts3 symbols
src/alpine/index.ts2 symbols
test/alpine.test.ts1 symbols
src/tokens.ts1 symbols
docs/docsify-version-plugin.js1 symbols

For agents

$ claude mcp add maska \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page