@okemamy/senegal-phone-validator
Version:
A minimal module to validate Senegal phone numbers.
20 lines (12 loc) • 918 B
Markdown
## Senegal Phone Validator

[](https://github.com/okemamy/senegal-phone-validator/issues)
[](https://github.com/okemamy/senegal-phone-validator/network)
[](https://github.com/okemamy/senegal-phone-validator/stargazers)
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');`