mobile-operator-lookup
Version:
A lightweight NPM package that identifies the telecom operator of a given mobile number, including company name, mobile money service, and country code, based on predefined prefixes.
6 lines (5 loc) • 324 B
JavaScript
const lookupMobileOperator = require("mobile-operator-lookup");
console.log(lookupMobileOperator("+23277123456")); // Africell Example
console.log(lookupMobileOperator("+23231123456")); // Qcell Example
console.log(lookupMobileOperator("+23278123456")); // Orange Example
console.log(lookupMobileOperator("+1234567890"));