# uNmAnNeR/imaskjs

vanilla javascript input mask

Repository: https://github.com/uNmAnNeR/imaskjs
Canonical: https://ross.abutalabs.com/products/imaskjs
Homepage: https://imask.js.org
Language: TypeScript
License: MIT
License Family: permissive
Topics: inputmask, vanilla-js
Last push: 2024-10-11T15:09:36+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3583, "days_push": 691, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5189, forks 272 (observed 2026-08-28T04:09:11.934127+00:00)

## What it is
A dependency-free vanilla JavaScript input masking library that formats user input in text fields for patterns like phone numbers, dates, numbers, and regex constraints. It ships framework plugins for React, Vue, Angular, Svelte, Solid, and React Native, and supports web components and contenteditable.

## Use cases
- format phone number input as user types
- mask date input fields in javascript
- restrict input to a regex pattern
- currency/number input with thousand separators
- masked input in react or vue forms
- format ssn or credit card input

## When to choose
- you need input masking with no external dependencies
- you use a major framework and want an official plugin
- you need varied mask types (pattern, number, date, regex, dynamic) in one library

## When to avoid
- you need masking outside the browser (e.g. server-side formatting)
- you want a full form validation/state management solution rather than just masking

## Facets
- artifact type: library
- maturity: active
- function: form-handling, ui-components
- domain: frontend, web-development
- platform: browser, cross-platform
- tags: input-mask, vanilla-js, typescript, form-inputs, react, vue, angular, svelte, zero-dependency, nodejs

## Member repositories
- uNmAnNeR/imaskjs (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:11.934127+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-29T18:01:46.180046+00:00, confidence not recorded.
  - readme: https://github.com/uNmAnNeR/imaskjs (fetched 2026-08-28T04:09:11.934127+00:00, sha cf11b85bcd7b)
  - homepage: https://imask.js.org (fetched 2026-08-29T08:55:46.621211+00:00, sha c6ca46db5798)
  - registry_npm: https://registry.npmjs.org/imaskjs (fetched 2026-08-29T08:55:46.630685+00:00, sha ab94b117dfba)
- Data as of 2026-08-30T08:39:29.467469+00:00.
