Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@loadsmart/utils-phone-number

Package Overview
Dependencies
Maintainers
20
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loadsmart/utils-phone-number

useful functions for manipulating phone numbers

latest
Source
npmnpm
Version
0.3.1
Version published
Maintainers
20
Created
Source

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>
)

Keywords

phone-number

FAQs

Package last updated on 23 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts