Skip to content

octabytes/format-phone

Repository files navigation

format-phone

Convert phone number into human readable format

Usage

import formatPhone from "@octabytes/format-phone";

formatPhone("923321234567"); // +92 332-1234567
formatPhone("16505551234"); // 1 (650) 555-1234