Korean phone number formatter and validator. Version 1.0.0 provides formatting, validation, parsing, and type detection for all major Korean phone number formats (mobile, Seoul, regional, representative, toll-free, VoIP). Supports international +82 input, custom delimiters, and middle-digit masking. Ships TypeScript types with a clean, zero-dependency API. No active release cadence; stable initial release.
npm install phone-format-krNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates formatting, validation, type detection, parsing, and options for Korean phone numbers.
Sanitize input to digits only before calling functions.
Use optional chaining or null check: const result = formatPhone(...) ?? '';
Only pass Korean numbers starting with 0 or +82.
Use named import: import { formatPhone } from 'phone-format-kr'Check return value: const result = formatPhone(...); if (result !== null) { ... }No dependency data recorded yet.