@already-existed/phone-number-beautifier
v1.0.5
Published
Lib for beautify phone number.
Downloads
52
Maintainers
Readme
Phone Number Beautifier
Lib for beautify phone number.
Installation
npm i -S @already-existed/phone-number-beautifier
Usage
// Ex: React Component
import { beautify } from '@already-existed/phone-number-beautifier'
function PhoneNumber({ value }: { value: string }) {
return <>{beautify(value)}</>
}
function App() {
return <PhoneNumber value="+380997836811"> // +380 (99) 78-36-811
}