@loadsmart/utils-phone-number
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

BundlePhobia BundlePhobia

utils-phone-number

useful functions for manipulating phone numbers

Install via NPM

$ npm i @loadsmart/utils-phone-number --save

Install via yarn

$ yarn add @loadsmart/utils-phone-number

Usage

import React from 'react'

import { format } from '@loadsmart/utils-phone-number'

const phone = '+12345678910'
const mask = '+X (XXX) XXX-XXXX'

export default () => (
  <div>
    formatted: {format(phone, mask)}, should render: (+1 (234) 567-8910)
  </div>
)

Readme

Keywords

Package Sidebar

Install

npm i @loadsmart/utils-phone-number

Weekly Downloads

47

Version

0.3.1

License

MIT

Unpacked Size

6.43 kB

Total Files

6

Last publish

Collaborators

  • bruno.manzo
  • felipe.asantos
  • giovannitoledo
  • douglasklein2
  • luiz.loadsmart
  • mwconceicao
  • yidi0912
  • lenoir.zamboni
  • diogomafra
  • oliver.tso
  • loadsmart-frontend
  • brennervaz
  • raittes
  • welingtonms-loadsmart
  • gutofoletto