african-states-and-tribes 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs ADDED
@@ -0,0 +1,443 @@
1
+ // src/data/african-countries.json
2
+ var african_countries_default = {
3
+ AO: {
4
+ phoneCode: 244,
5
+ capitalCity: "Luanda",
6
+ flagEmoji: "\u{1F1E6}\u{1F1F4}",
7
+ name: "Angola",
8
+ currency: "Angolan kwanza",
9
+ officialLanguage: "Portuguese"
10
+ },
11
+ BJ: {
12
+ phoneCode: 229,
13
+ capitalCity: "Porto-Novo",
14
+ flagEmoji: "\u{1F1E7}\u{1F1EF}",
15
+ name: "Benin",
16
+ currency: "West African CFA franc",
17
+ officialLanguage: "French"
18
+ },
19
+ BW: {
20
+ phoneCode: 267,
21
+ capitalCity: "Gaborone",
22
+ flagEmoji: "\u{1F1E7}\u{1F1FC}",
23
+ name: "Botswana",
24
+ currency: "Botswana pula",
25
+ officialLanguage: "Setswana"
26
+ },
27
+ BF: {
28
+ phoneCode: 226,
29
+ capitalCity: "Ouagadougou",
30
+ flagEmoji: "\u{1F1E7}\u{1F1EB}",
31
+ name: "Burkina Faso",
32
+ currency: "West African CFA franc",
33
+ officialLanguage: "French"
34
+ },
35
+ BI: {
36
+ phoneCode: 257,
37
+ capitalCity: "Bujumbura",
38
+ flagEmoji: "\u{1F1E7}\u{1F1EE}",
39
+ name: "Burundi",
40
+ currency: "Burundi franc",
41
+ officialLanguage: "Kirundi"
42
+ },
43
+ CV: {
44
+ phoneCode: 238,
45
+ capitalCity: "Praia",
46
+ flagEmoji: "\u{1F1E8}\u{1F1FB}",
47
+ name: "Cabo Verde",
48
+ currency: "Cape Verdean escudo",
49
+ officialLanguage: "Portuguese"
50
+ },
51
+ CM: {
52
+ phoneCode: 237,
53
+ capitalCity: "Yaound\xE9",
54
+ flagEmoji: "\u{1F1E8}\u{1F1F2}",
55
+ name: "Cameroon",
56
+ currency: "Central African CFA franc",
57
+ officialLanguage: "Major African languages"
58
+ },
59
+ CF: {
60
+ phoneCode: 236,
61
+ capitalCity: "Bangui",
62
+ flagEmoji: "\u{1F1E8}\u{1F1EB}",
63
+ name: "Central African Republic",
64
+ currency: "Central African CFA franc",
65
+ officialLanguage: "French"
66
+ },
67
+ DZ: {
68
+ phoneCode: 213,
69
+ capitalCity: "Algiers",
70
+ flagEmoji: "\u{1F1E9}\u{1F1FF}",
71
+ name: "Algeria",
72
+ currency: "Algerian dinar",
73
+ officialLanguage: "Arabic"
74
+ },
75
+ TD: {
76
+ phoneCode: 235,
77
+ capitalCity: "N'Djamena",
78
+ flagEmoji: "\u{1F1F9}\u{1F1E9}",
79
+ name: "Chad",
80
+ currency: "Central African CFA franc",
81
+ officialLanguage: "French"
82
+ },
83
+ KM: {
84
+ phoneCode: 269,
85
+ capitalCity: "Moroni",
86
+ flagEmoji: "\u{1F1F0}\u{1F1F2}",
87
+ name: "Comoros",
88
+ currency: "Comorian franc",
89
+ officialLanguage: "Arabic"
90
+ },
91
+ CD: {
92
+ phoneCode: 243,
93
+ capitalCity: "Kinshasa",
94
+ flagEmoji: "\u{1F1E8}\u{1F1E9}",
95
+ name: "Democratic Republic of the Congo",
96
+ currency: "Congolese franc",
97
+ officialLanguage: "French"
98
+ },
99
+ CG: {
100
+ phoneCode: 242,
101
+ capitalCity: "Brazzaville",
102
+ flagEmoji: "\u{1F1E8}\u{1F1EC}",
103
+ name: "Republic of the Congo",
104
+ currency: "Central African CFA franc",
105
+ officialLanguage: "French"
106
+ },
107
+ CI: {
108
+ phoneCode: 225,
109
+ capitalCity: "Yamoussoukro",
110
+ flagEmoji: "\u{1F1E8}\u{1F1EE}",
111
+ name: "Cote D'Ivoire",
112
+ currency: "West African CFA franc",
113
+ officialLanguage: "French"
114
+ },
115
+ DJ: {
116
+ phoneCode: 253,
117
+ capitalCity: "Djibouti (city)",
118
+ flagEmoji: "\u{1F1E9}\u{1F1EF}",
119
+ name: "Djibouti",
120
+ currency: "Djiboutian franc",
121
+ officialLanguage: "French"
122
+ },
123
+ EG: {
124
+ phoneCode: 20,
125
+ capitalCity: "Cairo",
126
+ flagEmoji: "\u{1F1EA}\u{1F1EC}",
127
+ name: "Egypt",
128
+ currency: "Egyptian Pound",
129
+ officialLanguage: "Arabic"
130
+ },
131
+ GQ: {
132
+ phoneCode: 240,
133
+ capitalCity: "Malabo",
134
+ flagEmoji: "\u{1F1EC}\u{1F1F6}",
135
+ name: "Equatorial Guinea",
136
+ currency: "Central African CFA franc",
137
+ officialLanguage: "Spanish"
138
+ },
139
+ ER: {
140
+ phoneCode: 291,
141
+ capitalCity: "Asmara",
142
+ flagEmoji: "\u{1F1EA}\u{1F1F7}",
143
+ name: "Eritrea",
144
+ currency: "Eritrean nakfa",
145
+ officialLanguage: "Afar"
146
+ },
147
+ ET: {
148
+ phoneCode: 251,
149
+ capitalCity: "Addis Ababa",
150
+ flagEmoji: "\u{1F1EA}\u{1F1F9}",
151
+ name: "Ethiopia",
152
+ currency: "Ethiopian birr",
153
+ officialLanguage: "Amharic"
154
+ },
155
+ GA: {
156
+ phoneCode: 241,
157
+ capitalCity: "Libreville",
158
+ flagEmoji: "\u{1F1EC}\u{1F1E6}",
159
+ name: "Gabon",
160
+ currency: "Central African CFA franc",
161
+ officialLanguage: "French"
162
+ },
163
+ GH: {
164
+ phoneCode: 233,
165
+ capitalCity: "Accra",
166
+ flagEmoji: "\u{1F1EC}\u{1F1ED}",
167
+ name: "Ghana",
168
+ currency: "Ghanaian cedi",
169
+ officialLanguage: "English"
170
+ },
171
+ GM: {
172
+ phoneCode: 220,
173
+ capitalCity: "Banjul",
174
+ flagEmoji: "\u{1F1EC}\u{1F1F2}",
175
+ name: "Gambia",
176
+ currency: "Dalasi",
177
+ officialLanguage: "English"
178
+ },
179
+ GN: {
180
+ phoneCode: 224,
181
+ capitalCity: "Conakry",
182
+ flagEmoji: "\u{1F1EC}\u{1F1F3}",
183
+ name: "Guinea",
184
+ currency: "Guinean franc",
185
+ officialLanguage: "French"
186
+ },
187
+ GW: {
188
+ phoneCode: 245,
189
+ capitalCity: "Bissau",
190
+ flagEmoji: "\u{1F1EC}\u{1F1FC}",
191
+ name: "Guinea-Bissau",
192
+ currency: "West African CFA franc",
193
+ officialLanguage: "Portuguese"
194
+ },
195
+ KE: {
196
+ phoneCode: 254,
197
+ capitalCity: "Nairobi",
198
+ flagEmoji: "\u{1F1F0}\u{1F1EA}",
199
+ name: "Kenya",
200
+ currency: "Kenyan shilling",
201
+ officialLanguage: "English"
202
+ },
203
+ LS: {
204
+ phoneCode: 266,
205
+ capitalCity: "Maseru",
206
+ flagEmoji: "\u{1F1F1}\u{1F1F8}",
207
+ name: "Lesotho",
208
+ currency: "Lesotho loti",
209
+ officialLanguage: "Sesotho"
210
+ },
211
+ LR: {
212
+ phoneCode: 231,
213
+ capitalCity: "Monrovia",
214
+ flagEmoji: "\u{1F1F1}\u{1F1F7}",
215
+ name: "Liberia",
216
+ currency: "Liberian Dollar",
217
+ officialLanguage: "English"
218
+ },
219
+ LY: {
220
+ phoneCode: 218,
221
+ capitalCity: "Tripoli",
222
+ flagEmoji: "\u{1F1F1}\u{1F1FE}",
223
+ name: "Libya",
224
+ currency: "Libyan dinar",
225
+ officialLanguage: "Arabic"
226
+ },
227
+ MG: {
228
+ phoneCode: 261,
229
+ capitalCity: "Antananarivo",
230
+ flagEmoji: "\u{1F1F2}\u{1F1EC}",
231
+ name: "Madagascar",
232
+ currency: "Malagasy ariary",
233
+ officialLanguage: "French"
234
+ },
235
+ MW: {
236
+ phoneCode: 265,
237
+ capitalCity: "Lilongwe",
238
+ flagEmoji: "\u{1F1F2}\u{1F1FC}",
239
+ name: "Malawi",
240
+ currency: "Malawian kwacha",
241
+ officialLanguage: "Chichewa"
242
+ },
243
+ ML: {
244
+ phoneCode: 223,
245
+ capitalCity: "Bamako",
246
+ flagEmoji: "\u{1F1F2}\u{1F1F1}",
247
+ name: "Mali",
248
+ currency: "West African CFA franc",
249
+ officialLanguage: "French"
250
+ },
251
+ MR: {
252
+ phoneCode: 222,
253
+ capitalCity: "Nouakchott",
254
+ flagEmoji: "\u{1F1F2}\u{1F1F7}",
255
+ name: "Mauritania",
256
+ currency: "Mauritanian ouguiya",
257
+ officialLanguage: "Arabic"
258
+ },
259
+ MU: {
260
+ phoneCode: 230,
261
+ capitalCity: "Port Louis",
262
+ flagEmoji: "\u{1F1F2}\u{1F1FA}",
263
+ name: "Mauritius",
264
+ currency: "Mauritian rupee",
265
+ officialLanguage: "Creole"
266
+ },
267
+ MA: {
268
+ phoneCode: 212,
269
+ capitalCity: "Rabat",
270
+ flagEmoji: "\u{1F1F2}\u{1F1E6}",
271
+ name: "Morocco",
272
+ currency: "Moroccan dirham",
273
+ officialLanguage: "Arabic"
274
+ },
275
+ MZ: {
276
+ phoneCode: 258,
277
+ capitalCity: "Maputo",
278
+ flagEmoji: "\u{1F1F2}\u{1F1FF}",
279
+ name: "Mozambique",
280
+ currency: "Mozambican metical",
281
+ officialLanguage: "Emakhuwa"
282
+ },
283
+ NA: {
284
+ phoneCode: 264,
285
+ capitalCity: "Windhoek",
286
+ flagEmoji: "\u{1F1F3}\u{1F1E6}",
287
+ name: "Namibia",
288
+ currency: "Namibian Dollar",
289
+ officialLanguage: null
290
+ },
291
+ NE: {
292
+ phoneCode: 227,
293
+ capitalCity: "Niamey",
294
+ flagEmoji: "\u{1F1F3}\u{1F1EA}",
295
+ name: "Niger",
296
+ currency: "West African CFA franc",
297
+ officialLanguage: "French"
298
+ },
299
+ NG: {
300
+ phoneCode: 234,
301
+ capitalCity: "Abuja",
302
+ flagEmoji: "\u{1F1F3}\u{1F1EC}",
303
+ name: "Nigeria",
304
+ currency: "Nigerian naira",
305
+ officialLanguage: "English"
306
+ },
307
+ RW: {
308
+ phoneCode: 250,
309
+ capitalCity: "Kigali",
310
+ flagEmoji: "\u{1F1F7}\u{1F1FC}",
311
+ name: "Rwanda",
312
+ currency: "Rwandan franc",
313
+ officialLanguage: "Kinyarwanda"
314
+ },
315
+ ST: {
316
+ phoneCode: 239,
317
+ capitalCity: "S\xE3o Tom\xE9",
318
+ flagEmoji: "\u{1F1F8}\u{1F1F9}",
319
+ name: "Sao Tome And Principe",
320
+ currency: "Sao Tome and Principe dobra",
321
+ officialLanguage: "Portuguese"
322
+ },
323
+ SN: {
324
+ phoneCode: 221,
325
+ capitalCity: "Dakar",
326
+ flagEmoji: "\u{1F1F8}\u{1F1F3}",
327
+ name: "Senegal",
328
+ currency: "West African CFA franc",
329
+ officialLanguage: "French"
330
+ },
331
+ SC: {
332
+ phoneCode: 248,
333
+ capitalCity: "Victoria",
334
+ flagEmoji: "\u{1F1F8}\u{1F1E8}",
335
+ name: "Seychelles",
336
+ currency: "Seychellois rupee",
337
+ officialLanguage: "Creole"
338
+ },
339
+ SL: {
340
+ phoneCode: 232,
341
+ capitalCity: "Freetown",
342
+ flagEmoji: "\u{1F1F8}\u{1F1F1}",
343
+ name: "Sierra Leone",
344
+ currency: "Sierra Leonean leone",
345
+ officialLanguage: "English"
346
+ },
347
+ SO: {
348
+ phoneCode: 252,
349
+ capitalCity: "Mogadishu",
350
+ flagEmoji: "\u{1F1F8}\u{1F1F4}",
351
+ name: "Somalia",
352
+ currency: "Somali shilling",
353
+ officialLanguage: "Somali"
354
+ },
355
+ ZA: {
356
+ phoneCode: 27,
357
+ capitalCity: "Pretoria / Cape Town",
358
+ flagEmoji: "\u{1F1FF}\u{1F1E6}",
359
+ name: "South Africa",
360
+ currency: "South African rand",
361
+ officialLanguage: "IsiZulu"
362
+ },
363
+ SS: {
364
+ phoneCode: 211,
365
+ capitalCity: "Juba",
366
+ flagEmoji: "\u{1F1F8}\u{1F1F8}",
367
+ name: "South Sudan",
368
+ currency: "South Sudanese Pound",
369
+ officialLanguage: "Arabic"
370
+ },
371
+ SD: {
372
+ phoneCode: 249,
373
+ capitalCity: "Khartoum",
374
+ flagEmoji: "\u{1F1F8}\u{1F1E9}",
375
+ name: "Sudan",
376
+ currency: "Sudanese Pound",
377
+ officialLanguage: "Arabic"
378
+ },
379
+ SZ: {
380
+ phoneCode: 268,
381
+ capitalCity: "Mbabane",
382
+ flagEmoji: "\u{1F1F8}\u{1F1FF}",
383
+ name: "Eswatini",
384
+ currency: "Swazi lilangeni",
385
+ officialLanguage: "English"
386
+ },
387
+ TZ: {
388
+ phoneCode: 255,
389
+ capitalCity: "Dodoma",
390
+ flagEmoji: "\u{1F1F9}\u{1F1FF}",
391
+ name: "Tanzania",
392
+ currency: "Tanzanian shilling",
393
+ officialLanguage: "Kiswahili or Swahili"
394
+ },
395
+ TG: {
396
+ phoneCode: 228,
397
+ capitalCity: "Lom\xE9",
398
+ flagEmoji: "\u{1F1F9}\u{1F1EC}",
399
+ name: "Togo",
400
+ currency: "West African CFA franc",
401
+ officialLanguage: "French"
402
+ },
403
+ TN: {
404
+ phoneCode: 216,
405
+ capitalCity: "Tunis",
406
+ flagEmoji: "\u{1F1F9}\u{1F1F3}",
407
+ name: "Tunisia",
408
+ currency: "Tunisian dinar",
409
+ officialLanguage: "Arabic"
410
+ },
411
+ UG: {
412
+ phoneCode: 256,
413
+ capitalCity: "Kampala",
414
+ flagEmoji: "\u{1F1FA}\u{1F1EC}",
415
+ name: "Uganda",
416
+ currency: "Ugandan shilling",
417
+ officialLanguage: "English"
418
+ },
419
+ ZM: {
420
+ phoneCode: 260,
421
+ capitalCity: "Lusaka",
422
+ flagEmoji: "\u{1F1FF}\u{1F1F2}",
423
+ name: "Zambia",
424
+ currency: "Zambian kwacha",
425
+ officialLanguage: "English"
426
+ },
427
+ ZW: {
428
+ phoneCode: 263,
429
+ capitalCity: "Harare",
430
+ flagEmoji: "\u{1F1FF}\u{1F1FC}",
431
+ name: "Zimbabwe",
432
+ currency: "United States Dollar",
433
+ officialLanguage: "English"
434
+ }
435
+ };
436
+
437
+ // src/index.ts
438
+ function getAllAfricaCountries() {
439
+ return african_countries_default;
440
+ }
441
+ export {
442
+ getAllAfricaCountries
443
+ };
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "african-states-and-tribes",
3
+ "version": "1.0.0",
4
+ "description": "This package streamlines the management of African regional data. It provides easy access to information on states and tribes and is ideal for developers working on projects involving regional data, educational resources, or applications that focus on the rich cultural diversity of Africa.",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "scripts": {
9
+ "build": "tsup"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/hilory16/african-states-and-tribes.git"
14
+ },
15
+ "keywords": [
16
+ "african states",
17
+ "african tribes",
18
+ "countries in africa",
19
+ "tribes in africa",
20
+ "africa tribes",
21
+ "africa",
22
+ "african countries",
23
+ "african diversity",
24
+ "africa diversity"
25
+ ],
26
+ "author": "Olamide Ilori",
27
+ "license": "MIT",
28
+ "bugs": {
29
+ "url": "https://github.com/hilory16/african-states-and-tribes/issues"
30
+ },
31
+ "homepage": "https://github.com/hilory16/african-states-and-tribes#readme",
32
+ "devDependencies": {
33
+ "tsup": "^8.2.0",
34
+ "typescript": "^5.5.3"
35
+ }
36
+ }