1.0.2 • Published 2 years ago
@zach-shearer/format-phone v1.0.2
Final Assessment (Phone-Formatting)
For the final assessment in ACS3310, we were tasked to formatting phone numbers.
Installation and Usage
npm install @zach-shearer/format-phone
// CommonJS
const { formatPhone } = require('@zach-shearer/format-phone')
// or ES6
import { formatPhone } from '@zach-shearer/format-phone'
formatPhone('5555555555') // (555)-555-5555