2
2
3
3
// Sample service provider data (for demonstration purposes)
4
4
const serviceProviders = {
5
- '+1' : 'AT&T' ,
6
- '+44' : 'Vodafone UK' ,
7
- '+91' : 'Airtel' ,
8
- '+33' : 'Orange France' ,
9
- '+49' : 'Telekom Deutschland' ,
10
- '+61' : 'Telstra Australia' ,
11
- '+81' : 'NTT DOCOMO' ,
12
- '+82' : 'SK Telecom' ,
13
- '+86' : 'China Mobile' ,
14
- '+90' : 'Turkcell' ,
15
- '+92' : 'Jazz Pakistan' ,
16
- '+234' : 'MTN Nigeria' ,
17
- '+254' : 'Safaricom Kenya' ,
18
- '+966' : 'STC Saudi Arabia' ,
19
- '+971' : 'Etisalat UAE' ,
20
- '+92' : 'Telenor Pakistan' ,
21
- '+93' : 'Roshan Afghanistan' ,
22
- '+355' : 'Vodafone Albania' ,
23
- '+375' : 'MTS Belarus' ,
24
- '+598' : 'Antel Uruguay' ,
25
- // Add more service providers and country codes here
5
+ "+1" : "AT&T" ,
6
+ "+44" : "Vodafone UK" ,
7
+ "+91" : "Airtel" ,
8
+ "+33" : "Orange France" ,
9
+ "+49" : "Telekom Deutschland" ,
10
+ "+61" : "Telstra Australia" ,
11
+ "+81" : "NTT DOCOMO" ,
12
+ "+82" : "SK Telecom" ,
13
+ "+86" : "China Mobile" ,
14
+ "+90" : "Turkcell" ,
15
+ "+92" : "Jazz Pakistan" ,
16
+ "+234" : "MTN Nigeria" ,
17
+ "+254" : "Safaricom Kenya" ,
18
+ "+966" : "STC Saudi Arabia" ,
19
+ "+971" : "Etisalat UAE" ,
20
+ "+93" : "Roshan Afghanistan" ,
21
+ "+355" : "Vodafone Albania" ,
22
+ "+375" : "MTS Belarus" ,
23
+ "+598" : "Antel Uruguay" ,
24
+ "+52" : "Telcel Mexico" ,
25
+ "+55" : "Vivo Brazil" ,
26
+ "+356" : "GO Malta" ,
27
+ "+977" : "Nepal Telecom" ,
28
+ "+81" : "SoftBank Japan" ,
29
+ "+82" : "KT Corporation South Korea" ,
30
+ "+852" : "HKT Hong Kong" ,
31
+ "+886" : "Chunghwa Telecom Taiwan" ,
32
+ "+94" : "Dialog Axiata Sri Lanka" ,
33
+ "+880" : "Grameenphone Bangladesh" ,
34
+ "+93" : "Roshan Afghanistan" ,
35
+ "+46" : "Tele2 Sweden" ,
36
+ "+30" : "Cosmote Greece" ,
37
+ "+7" : "MTS Russia" ,
38
+ "+65" : "Singtel Singapore" ,
39
+ "+46" : "Telia Sweden" ,
40
+ "+34" : "Movistar Spain" ,
41
+ "+351" : "Vodafone Portugal" ,
42
+ "+39" : "TIM Italy" ,
43
+ "+27" : "Vodacom South Africa" ,
44
+ "+20" : "Orange Egypt" ,
45
+ "+962" : "Zain Jordan" ,
46
+ "+503" : "Claro El Salvador" ,
47
+ "+506" : "Kölbi Costa Rica" ,
48
+ "+54" : "Claro Argentina" ,
49
+ "+598" : "Movistar Uruguay" ,
50
+ "+52" : "Movistar Mexico" ,
51
+ "+57" : "Claro Colombia" ,
52
+ // Add more service providers and country codes here
26
53
} ;
27
54
28
55
/**
@@ -31,9 +58,9 @@ const serviceProviders = {
31
58
* @returns {string } - The service provider name or 'Unknown Service Provider'.
32
59
*/
33
60
function getServiceProvider ( countryCode ) {
34
- return serviceProviders [ countryCode ] || ' Unknown Service Provider' ;
61
+ return serviceProviders [ countryCode ] || " Unknown Service Provider" ;
35
62
}
36
63
37
64
module . exports = {
38
- getServiceProvider,
39
- } ;
65
+ getServiceProvider,
66
+ } ;
0 commit comments