phone-number-formatter-us

1.0.0 • Public • Published

Phone Number Formatter (US)

Format phone number in (xxx) xxx-xxxx format.

Usage

var format = require ('./phone-number-formatter')

console.log(format('1234567890'));

Result: (123) 456-7890

Features

  • Reject non numeric characters
  • Truncate longer than 10 digits
  • Partial completion

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i phone-number-formatter-us

    Weekly Downloads

    69

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • ysdanielkim