zim-phone-utils
Version:
A JavaScript utility library for validating, formatting, and detecting carriers for Zimbabwean phone numbers (mobile and landline)
25 lines (21 loc) • 429 B
JavaScript
/**
* Data for Zimbabwean phone numbers
*/
const mobileCarriers = {
econet: ['077', '078'],
netone: ['071'],
telecel: ['073']
};
const landlineAreaCodes = {
harare: '024',
bulawayo: '029',
gweru: '054',
mutare: '020',
masvingo: '039',
kwekwe: '055',
chinhoyi: '067',
marondera: '065',
bindura: '066'
};
const countryCode = '263';
module.exports = { mobileCarriers, landlineAreaCodes, countryCode };