Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

84KaliPleXon3/naija-phone-number

Domain:

digital infrastructure

Record type:

software
Creator:
84K
Host:
## Naija Phone Number A fast minimal module to validate Nigerian mobile phone numbers using Regular Expressions. ### Installation ``` $ npm install naija-phone-number --save ``` ### Usage This module assumes that you already know that Nigerian numbers are prefixed by `+234` and you should not expect your users to type that. Instead your UI should look something like this. ``` |**********************| +234 | phone number here | |**********************| ``` Now that we've gotten this out of the way here's an example ```js const naijaNumber = require('naija-phone-number'); let phoneInput = document.querySelector('#phone-input').value; naijaNumber.isValid(phoneInput); // true or false ``` ### Also ```js // 12 digit numbers naijaNumber.isValid('070328582392'); // true // pass argument as Number naijaNumber.isValid(081928582392); // true // Unknown provider naijaNumber.isValid(050728582392); // false ``` ### License MIT

Visit

github.com

Similar

dokasto/naija-phone-numberBilex95/naija-phone-inputIkami-Mercy/phone-number-formattertiavina-mika/validate-malagasy-phone-number-js

dokasto/naija-phone-number

A fast minimal module to validate Nigerian mobile phone numbers using Regular Expressions. ## Naija

Bilex95/naija-phone-input

A phone input that actually understands Nigerian numbers — 0803, +234, spaces, the lot. # naija-pho

Ikami-Mercy/phone-number-formatter

An android library to format Kenya 🇰🇪 ,🇺🇬 , 🇹🇿 Phone Number to international format. # Phone Number

tiavina-mika/validate-malagasy-phone-number-js

Created with CodeSandbox # validate-malagasy-phone-number-js Created with CodeSandbox