1.0.2 • Published 2 years ago
@okemamy/senegal-phone-validator v1.0.2
Senegal Phone Validator
A minimal module to validate Senegal phone numbers using Regular Expressions.
Install
npm install senegal-phone-validator --save
Using Package
const { isValidMobilePhone } = require('senegal-phone-validator')
isValidMobilePhone(phoneNumber)
function returns a true or false for valid or invalid phone numbers
const validPhone = isValidMobilePhone('+221776857298');