nosir/cleave.js
Format input text content when you are typing... observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3759
- days_rel: n/a
- days_push: 1012
- n_releases_24m: 0
Adoption not part of the score
17859 stars · 1567 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Cleave.js is a JavaScript library that automatically formats text input fields as the user types, supporting credit card numbers, phone numbers, dates, times, numerals, and custom block patterns. It ships as a vanilla JS library with React and AngularJS integrations, but is now deprecated in favor of cleave-zen.
Use cases
- format credit card numbers as users type in a payment form
- format phone numbers with country-specific patterns
- format date and time inputs like YYYY-MM-DD
- format large numbers with thousand separators
- apply custom delimiter and block patterns to input fields
- add input masking to a React form
When to choose
- you need lightweight, dependency-free input formatting in vanilla JS or React
- you want automatic credit card, phone, date, or numeral formatting without writing regex masks
- you are maintaining a legacy project already using Cleave.js
When to avoid
- you are starting a new project - the library is deprecated and its author recommends cleave-zen
- you need full validation or sanitization - Cleave only formats, it does not validate
- you need a maintained library with active bug fixes and framework support beyond React/AngularJS 1.x
Facets
library · maturity abandoned
form-handling ui-components web-development frontend browser cross-platform input-mask input-formatting credit-card phone-number deprecated react angularjs vanilla-js nodejs
3 sources
- readme: https://github.com/nosir/cleave.js · fetched 2026-08-28 · 65be1e5c9047
- homepage: http://nosir.github.io/cleave.js · fetched 2026-08-29 · 68be48d13339
- registry_npm: https://registry.npmjs.org/cleave.js · fetched 2026-08-29 · f865de8c1de1
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| nosir/cleave.js | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem