@okemamy/senegal-phone-validator

A minimal module to validate Senegal phone numbers.

Usage no npm install needed!

<script type="module">
  import okemamySenegalPhoneValidator from 'https://cdn.skypack.dev/@okemamy/senegal-phone-validator';
</script>

README

Senegal Phone Validator

image info GitHub issues GitHub forks GitHub stars

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');