validate-phone-number-node-js

0.0.1 • Public • Published

Phone number check

Introduction

Phone number check is a npm module for NodeJS, that checks if a phone number exists and valid.

It validates the number through regex.

Install

npm i validate-phone-number-node-js

Usage

validate(phoneNumber)

The function signature accepts an arguments and returns a boolean value.

  • true (boolean) valid phone number.
  • false (boolean) invalid phone number.

Example

const validatePhoneNumber = require('validate-phone-number-node-js');
const result = validatePhoneNumber.validate('+8801744253089');
 

MIT License

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    469
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    469

Package Sidebar

Install

npm i validate-phone-number-node-js

Weekly Downloads

469

Version

0.0.1

License

ISC

Unpacked Size

1.24 kB

Total Files

3

Last publish

Collaborators

  • bmshamsnahid