A lightweight JavaScript library for parsing, formatting, and masking US Social Security Numbers. Current stable version is 1.0.0, released with no subsequent updates. It provides a simple API via `SSNFormatter.parse()` returning an object with area, group, and serial parts, and a `format()` method supporting customizable masks. Key differentiators include minimal dependencies and straightforward pattern-based parsing using characters A-I for SSN digits. However, it lacks TypeScript types, is not actively maintained, and has no built-in validation for invalid SSNs like 000 or 666 prefixes.
npm install ssn-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows parsing a SSN with a format pattern, accessing area/group/serial, and formatting with masking.
Implement your own validation logic before or after parsing.
Consider migrating to a maintained alternative such as 'ssn-validator' if support is needed.
Ensure the input string length matches the pattern or use the full 9-digit pattern.
Use `const SSNFormatter = require('ssn-formatter');` instead.No dependency data recorded yet.