phone-formatter

JSON →
library 0.0.2 ·javascript abandoned
verified Jun 4, 2026

Phone-formatter is a minimal Node.js library (v0.0.2, last updated 2013) for normalizing and formatting US-centric telephone numbers. It provides two methods: normalize() strips non-digits and leading country codes, returning 10 digits; format() renders a 10-digit string into arbitrary formats using 'N' placeholders. The library is simple but unmaintained, lacks international support, and has no TypeScript types, testing, or active development. It is suitable for legacy projects only.