s-yadav/react-number-format
React component to format numbers in an input or as a text. observed · 2026-08-28
Health v2 · maintenance only
71/100
- Activity 73
- Release rhythm 51
- 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: 108
- age_days: 3790
- days_rel: 164
- days_push: 164
- n_releases_24m: 4
Adoption not part of the score
4099 stars · 417 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A React library for formatting numbers in inputs or as text, with a lightweight caret engine that restricts input to specific numeric or string patterns. It supports prefixes, suffixes, thousands separators, input masking, and custom format patterns.
Use cases
- format currency input in a react form
- mask phone number input with a pattern
- add thousands separators to number inputs
- display formatted numbers as text in react
- restrict user input to numeric patterns
- build a credit card number input field
When to choose
- you need robust caret handling while users type formatted numbers
- you want prefix/suffix, separators, and masking out of the box
- you need both input formatting and plain text number display
When to avoid
- you are not using React
- you need arbitrary non-numeric text formatting beyond patterns
- you want a framework-agnostic vanilla JS formatter
Facets
library · maturity stable
form-handling ui-components frontend web-development browser react input-masking number-formatting currency-input nodejs web-server
1 source
- readme: https://github.com/s-yadav/react-number-format · fetched 2026-08-28 · 4b4d34476834
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| s-yadav/react-number-format | main | 71 |
For agents
markdown · JSON · MCP: product_card(name="s-yadav/react-number-format")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem