phone-formatter

JSON →
library 0.0.4 ·javascript deprecated
verified Jun 4, 2026

A lightweight Node.js library for parsing and formatting phone numbers. Current stable version is 0.0.4 (last updated 2013). It provides two simple methods: normalize() to strip formatting from phone numbers, and format() to output phone numbers in a custom format using "N" placeholders. It can handle many US-centric formats but has limited international support. The library is minimal and has no external dependencies.