strip-and-shape-phone

1.0.2 • Public • Published

strip-and-shape-phone

A utility function that prefaces a phone number with '+1'.

Usage:

import stripAndShapePhone from 'strip-and-shape-phone'; // Your NPM package.
 
const phoneNumber = '843-555-1234'; // The string to be formatted.
 
const formattedNumber = stripAndShapePhone(phoneNumber); // Calling the imported package.
 
formattedNumber === '+18435551234'; // true

Readme

Keywords

none

Package Sidebar

Install

npm i strip-and-shape-phone

Weekly Downloads

1

Version

1.0.2

License

ISC

Last publish

Collaborators

  • fbguillo