@already-existed/phone-number-beautifier
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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
}

Dependents (0)

Package Sidebar

Install

npm i @already-existed/phone-number-beautifier

Weekly Downloads

9

Version

1.0.5

License

MIT

Unpacked Size

8.37 kB

Total Files

12

Last publish

Collaborators

  • already-existed