# vuejs-tips/vue-the-mask

Tiny (<2k gzipped) and dependency free mask input for Vue.js

Repository: https://github.com/vuejs-tips/vue-the-mask
Canonical: https://ross.abutalabs.com/products/vue-the-mask
Homepage: https://vuejs-tips.github.io/vue-the-mask/
Language: JavaScript
License Family: other
Last push: 2022-12-15T23:33:16+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3425, "days_push": 1357, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1741, forks 205 (observed 2026-08-28T04:05:30.208055+00:00)

## What it is
A tiny (<2KB gzipped), dependency-free input mask component and directive for Vue.js. It formats user input according to pattern tokens like digits, letters, and transforms.

## Use cases
- format phone number input in a vue form
- mask input for zip codes in vue.js
- force uppercase letters in an input field
- apply input masks without dependencies
- format cpf or ssn input in vue
- directive-based input masking in vue

## When to choose
- you need a lightweight, dependency-free mask for Vue 2 inputs
- you want a simple token-based mask with component or directive usage
- your masks are for strings like phones, dates, or IDs, not currency

## When to avoid
- you need money/currency formatting (use v-money instead)
- you are building with Vue 3 and need actively maintained support
- you need complex conditional or dynamic mask logic

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, form-handling
- domain: frontend, web-development
- platform: -
- tags: input-mask, vue2, text-formatting, javascript, vue

## Member repositories
- vuejs-tips/vue-the-mask (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:30.208055+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:30:03.722797+00:00, confidence not recorded.
  - readme: https://github.com/vuejs-tips/vue-the-mask (fetched 2026-08-28T04:05:30.208055+00:00, sha 880e060f535d)
  - homepage: https://vuejs-tips.github.io/vue-the-mask/ (fetched 2026-08-29T11:07:46.015680+00:00, sha f29b1f3a7a71)
- Data as of 2026-08-30T08:39:29.467469+00:00.
