us-phone-formatter
v1.0.1
Published
A TypeScript npm package to format raw digits into US phone numbers.
Downloads
2
Readme
US Phone Number Formatter
A TypeScript npm package to format raw digits into US phone numbers.
Installation
Install the package using npm: npm install us-phone-formatter
Usage
Import the package and use the formatUSPhoneNumber
function to format raw digits into US phone numbers:
import { formatUSPhoneNumber } from "us-phone-number-formatter";
console.log(formatUSPhoneNumber("1234567890")); // Output: (123) 456-7890