Reference
This section documents the complete public surface of @samline/formatter. Pages are grouped by concept (configuration, API, examples, regex) rather than by internal module — readers care about what they can do, not how the codebase is organised.
Sections in this reference
Section titled “Sections in this reference”- Configuration — every option explained, with defaults and per-
formatTypebehavior. - API — function-by-function signatures, exported types, and the browser global surface.
- Examples — end-to-end recipes for common form scenarios.
- Regex — bundled validation patterns paired with ready-to-use error messages.