@validate-phone/web
TypeScript icon, indicating that this package has built-in type declarations

1.6.1 • Public • Published

Validate phone numbers for web

  • <1kB
  • Zero-dependency
  • Utilizes validatephonenumber.com free API
  • Compatible with all modern browsers

How to use

ES6

import { isValidPhoneNumber } from '@validate-phone/web'

const isValid = await validatePhoneNumber('+123456788')

CommonJS

const { isValidPhoneNumber } = require('@validate-phone/web')

const isValid = await validatePhoneNumber('+123456788')

Package Sidebar

Install

npm i @validate-phone/web

Weekly Downloads

1

Version

1.6.1

License

ISC

Unpacked Size

3.87 kB

Total Files

7

Last publish

Collaborators

  • validate-phone