-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathcountries-list.node.txt
34 lines (26 loc) · 1.73 KB
/
countries-list.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
┏━━━━━━━━━━━━━━━━━━━━┓
┃ COUNTRIES-LIST ┃
┗━━━━━━━━━━━━━━━━━━━━┛
VERSION ==> #3.1.1
countries #OBJ of all countries
#KEY is 'CODE': ISO 3166-2 alpha-2 code
#Value is OBJ2:
# - name STR (e.g. 'Sweden')
# - native STR (e.g. 'Sverige')
# - phone STR (e.g. '46')
# - continuent STR (e.g. 'EU')
# - capital STR (e.g. 'Stockholm')
# - currency STR (e.g. 'SEK')
# - languages STR_ARR (e.g. ['sv'])
# - partOf STR
# - userAssigned BOOL
getCountryDataList()->OBJ #Returns countries, but OBJ also has:
# - iso2 'CODE' (2 letters)
# - iso3 'CODE' (3 letters)
getCountryCode('CODE')->OBJ #Like countries.CODE, but with getCountryDataList()
getCountryCode('COUNTRY')->'CODE' #
getEmojiFlag('COUNTRY')->STR|'' #From country ISO to flag emoji
continents #{ KEY: STR, ... } of all continents
#E.g. { EU: 'Europe' }
languages #{ KEY: { name STR, native STR[, rtl 1] } } of all languages (ISO 639-1)
#E.g. { fr: { name: 'French', native: 'Français' } }