nigerian-mobile-validator
Version:
The most rigorous, up-to-date library for validating Nigerian mobile numbers. Fully NCC-compliant, and security-focused, with enterprise-grade features to prevent the business risks of validation failures in regulated industries.
33 lines (32 loc) • 1.28 kB
JavaScript
;
// src/numbering-plan/telco.ts
Object.defineProperty(exports, "__esModule", { value: true });
exports.invalidTelcos = exports.Telco = void 0;
/**
* Enum representing the name of the mobile network to which a subscriber number is assigned.
*
* These network names are based on the Nigerian National Numbering Plan.
* Last updated based on March 2025 NCC data.
*/
var Telco;
(function (Telco) {
Telco["SharedVAS"] = "Shared VAS";
Telco["Unassigned"] = "Unassigned";
Telco["Airtel"] = "Airtel";
Telco["MTN"] = "MTN";
Telco["MTel"] = "M-Tel";
Telco["Globacom"] = "Globacom";
Telco["NineMobile"] = "9Mobile";
Telco["Visafone"] = "Visafone";
Telco["Smile"] = "Smile";
Telco["Mafab"] = "Mafab";
Telco["InterconnectClearinghouse"] = "Interconnect Clearinghouse";
Telco["Openskys"] = "Openskys";
Telco["Withdrawn"] = "Withdrawn";
Telco["Returned"] = "Returned";
Telco["Reserved"] = "Reserved";
Telco["Telewyz"] = "Telewyz";
Telco["Unknown"] = "Unknown";
})(Telco || (exports.Telco = Telco = {}));
/** An array of invalid teclo types eg Withdrawn, Unallocated, Reserved etc. */
exports.invalidTelcos = [Telco.SharedVAS, Telco.Unassigned, Telco.Withdrawn, Telco.Returned, Telco.Reserved, Telco.Unknown];