React Credit Card Number Formatter
JSON →A React adapter component for formatting, validating, and managing credit card form inputs. Current stable version is 0.9.1, released under MIT license. It formats card numbers with spaces every four digits, performs Luhn validation, blocks invalid input for MM/YY/CVV fields, and uses a render-prop pattern to be styling-agnostic. Unlike alternatives (e.g., react-credit-cards), it separates formatting logic from UI and provides detailed credit card info (brand, completeness per field). Depends on React only.
Traffic · last 30 days stale · no recent hits
total hits 18
actors 4 distinct systems
last hit 23d ago human
top countries 🇸🇬 Singapore · 🇺🇸 United States · VN · 🇨🇳 China · 🇬🇧 United Kingdom
Resources
packagereact-cc-number-formatter ↗