# jaridmargolin/formatter.js

Format html inputs to match a specified pattern

Repository: https://github.com/jaridmargolin/formatter.js
Canonical: https://ross.abutalabs.com/products/formatterjs
Homepage: http://firstopinion.github.io/formatter.js 
Language: JavaScript
License Family: other
Last push: 2017-06-01T18:27:46+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": 4734, "days_push": 3380, "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 2446, forks 227 (observed 2026-08-28T04:06:52.691889+00:00)

## What it is
A dependency-free JavaScript library that formats user input in HTML fields to match a specified pattern (e.g., phone numbers, credit cards, zip codes) as the user types. It works with vanilla JavaScript and includes a jQuery wrapper, supporting dynamic pattern switching based on input content.

## Use cases
- format phone number input as user types
- mask credit card input with dashes
- format zip or postal code input dynamically
- add input masking to a form without dependencies
- apply pattern-based formatting to text inputs in jQuery

## When to choose
- you need lightweight, dependency-free input masking in the browser
- you want pattern-based formatting like phone numbers or credit cards
- you need dynamic patterns that switch based on input length or content

## When to avoid
- you need masking outside the browser (e.g., Node.js or mobile-native)
- you require actively maintained software with a license file
- you need complex validation rather than simple pattern formatting

## Facets
- artifact type: library
- maturity: maintenance
- function: form-handling, ui-components
- domain: web-development, frontend
- platform: browser
- tags: input-masking, input-formatting, vanilla-javascript, jquery-plugin, no-dependencies, javascript

## Member repositories
- jaridmargolin/formatter.js (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:52.691889+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-30T02:30:32.740687+00:00, confidence not recorded.
  - readme: https://github.com/jaridmargolin/formatter.js (fetched 2026-08-28T04:06:52.691889+00:00, sha 8f974369fada)
- Data as of 2026-08-30T08:39:29.467469+00:00.
