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.
28 lines (27 loc) • 846 B
TypeScript
/**
* 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.
*/
export declare enum Telco {
SharedVAS = "Shared VAS",
Unassigned = "Unassigned",
Airtel = "Airtel",
MTN = "MTN",
MTel = "M-Tel",
Globacom = "Globacom",
NineMobile = "9Mobile",
Visafone = "Visafone",
Smile = "Smile",
Mafab = "Mafab",
InterconnectClearinghouse = "Interconnect Clearinghouse",
Openskys = "Openskys",
Withdrawn = "Withdrawn",
Returned = "Returned",
Reserved = "Reserved",
Telewyz = "Telewyz",
Unknown = "Unknown"
}
/** An array of invalid teclo types eg Withdrawn, Unallocated, Reserved etc. */
export declare const invalidTelcos: Telco[];