PhoneFormat.js

JSON →
library 1.0.9 ·javascript maintenance
verified Jun 4, 2026

A JavaScript telephone number formatting library based on Google's libphonenumber and compiled via Google Closure. Version 1.0.9 is the latest, last synced with libphonenumber v8.10.6. Provides formatting (E164, international, local), validation, country code lookup, and examples. Note: it may lag behind the latest libphonenumber; users can manually update the source via the Closure compiler. Provides AMD, CommonJS, and global builds. Lightweight alternative to libphonenumber-js or google-libphonenumber.