1.0.9 • Published 3 years ago

bl-phonenumber-validator v1.0.9

Weekly downloads
1
License
ISC
Repository
-
Last release
3 years ago

PHONE NUMBER VALIDATOR

Phonenumber validator is phone number validating and parsing library.

Installation


via npm

npm install bl-phonenumber-validator --save

via yarn

yarn add bl-phonenumber-validator

Use


Get Prefix

import { getPrefix } from bl-phonenumber-validator

const prefix = getPrefix('255653679553')
    .then( (prefix) => console.log( prefix ) )
    .catch( (error) => { throw error })

Validate phone number

import { isValidMsisdn } from bl-phonenumber-validator

const prefix = isValidMsisdn('255653679553')
    .then( (prefix) => {
        // output 'true'
    } )
    .catch( (error) => { throw error })

License

MIT

1.0.9

3 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago