# s-yadav/react-number-format

React component to format numbers in an input or as a text.

Repository: https://github.com/s-yadav/react-number-format
Canonical: https://ross.abutalabs.com/products/react-number-format
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-03-22T11:07:24+00:00

## Health v2 (maintenance only)
Score: 71/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 73, release rhythm 51, longevity 100
- inputs: {"age_days": 3790, "days_push": 164, "days_rel": 164, "gap_med": 108, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4099, forks 417 (observed 2026-08-28T04:08:35.520541+00:00)

## What it is
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
- artifact type: library
- maturity: stable
- function: form-handling, ui-components
- domain: frontend, web-development
- platform: browser
- tags: react, input-masking, number-formatting, currency-input, nodejs, web-server

## Member repositories
- s-yadav/react-number-format (main) score 71

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:35.520541+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:23:17.544847+00:00, confidence not recorded.
  - readme: https://github.com/s-yadav/react-number-format (fetched 2026-08-28T04:08:35.520541+00:00, sha 4b4d34476834)
- Data as of 2026-08-30T08:39:29.467469+00:00.
