plevinjs 0.2.1 → 0.2.2
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/README.md +78 -13
- package/dist/cli.d.ts +4 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +16 -0
- package/dist/cli.js.map +1 -0
- package/dist/compress.d.ts +5 -0
- package/dist/compress.d.ts.map +1 -0
- package/dist/compress.js +954 -0
- package/dist/compress.js.map +1 -0
- package/dist/countries.d.ts +1 -1
- package/dist/countries.d.ts.map +1 -1
- package/dist/countries.js +251 -250
- package/dist/countries.js.map +1 -1
- package/dist/derive.d.ts +1 -0
- package/dist/derive.d.ts.map +1 -1
- package/dist/derive.js +12 -6
- package/dist/derive.js.map +1 -1
- package/dist/estimate.d.ts +38 -0
- package/dist/estimate.d.ts.map +1 -0
- package/dist/estimate.js +263 -0
- package/dist/estimate.js.map +1 -0
- package/dist/extra.d.ts.map +1 -1
- package/dist/extra.js +12 -12
- package/dist/extra.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +51 -6
- package/dist/index.js.map +1 -1
- package/dist/leaves.d.ts +30 -0
- package/dist/leaves.d.ts.map +1 -0
- package/dist/leaves.js +183 -0
- package/dist/leaves.js.map +1 -0
- package/dist/lzma.d.ts +18 -0
- package/dist/lzma.d.ts.map +1 -1
- package/dist/lzma.js +18 -18
- package/dist/lzma.js.map +1 -1
- package/dist/matcher.d.ts +25 -0
- package/dist/matcher.d.ts.map +1 -0
- package/dist/matcher.js +198 -0
- package/dist/matcher.js.map +1 -0
- package/dist/models.d.ts +7 -0
- package/dist/models.d.ts.map +1 -1
- package/dist/plevin.min.js +258 -257
- package/dist/reader.d.ts.map +1 -1
- package/dist/reader.js +12 -1
- package/dist/reader.js.map +1 -1
- package/dist/selection.d.ts +34 -0
- package/dist/selection.d.ts.map +1 -0
- package/dist/selection.js +338 -0
- package/dist/selection.js.map +1 -0
- package/dist/slim.d.ts +21 -0
- package/dist/slim.d.ts.map +1 -0
- package/dist/slim.js +639 -0
- package/dist/slim.js.map +1 -0
- package/dist/slim.min.js +1 -0
- package/dist/stats.d.ts +61 -0
- package/dist/stats.d.ts.map +1 -0
- package/dist/stats.js +368 -0
- package/dist/stats.js.map +1 -0
- package/dist/writer.d.ts +32 -0
- package/dist/writer.d.ts.map +1 -0
- package/dist/writer.js +325 -0
- package/dist/writer.js.map +1 -0
- package/package.json +7 -2
package/dist/countries.js
CHANGED
|
@@ -1,254 +1,255 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** Per country: code, iso3, numeric, three names, currency, calling code, languages. */
|
|
2
2
|
export const COUNTRIES = `
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
3
|
+
AD|AND|020|Andorra|Principality of Andorra||EUR|Euro|+376|ca
|
|
4
|
+
AE|ARE|784|United Arab Emirates|||AED|United Arab Emirates Dirham|+971|ar
|
|
5
|
+
AF|AFG|004|Afghanistan|Islamic Republic of Afghanistan||AFN|Afghan Afghani|+93|fa,ps
|
|
6
|
+
AG|ATG|028|Antigua and Barbuda|||XCD|East Caribbean Dollar|+1|en
|
|
7
|
+
AI|AIA|660|Anguilla|||XCD|East Caribbean Dollar|+1|en
|
|
8
|
+
AL|ALB|008|Albania|Republic of Albania||ALL|Albanian Lek|+355|sq
|
|
9
|
+
AM|ARM|051|Armenia|Republic of Armenia||AMD|Armenian Dram|+374|hy
|
|
10
|
+
AO|AGO|024|Angola|Republic of Angola||AOA|Angolan Kwanza|+244|pt
|
|
11
|
+
AQ|ATA|010|Antarctica||||||
|
|
12
|
+
AR|ARG|032|Argentina|Argentine Republic||ARS|Argentine Peso|+54|es
|
|
13
|
+
AS|ASM|016|American Samoa|||USD|US Dollar|+1|sm,en
|
|
14
|
+
AT|AUT|040|Austria|Republic of Austria||EUR|Euro|+43|de
|
|
15
|
+
AU|AUS|036|Australia|||AUD|Australian Dollar|+61|en
|
|
16
|
+
AW|ABW|533|Aruba|||AWG|Aruban Florin|+297|nl,pap
|
|
17
|
+
AX|ALA|248|Åland Islands|||EUR|Euro|+358|sv
|
|
18
|
+
AZ|AZE|031|Azerbaijan|Republic of Azerbaijan||AZN|Azerbaijani Manat|+994|az,az_Cyrl
|
|
19
|
+
BA|BIH|070|Bosnia and Herzegovina|Republic of Bosnia and Herzegovina||BAM|Bosnia-Herzegovina Convertible Mark|+387|bs_Cyrl,bs,hr,sr_Latn,sr
|
|
20
|
+
BB|BRB|052|Barbados|||BBD|Barbadian Dollar|+1|en
|
|
21
|
+
BD|BGD|050|Bangladesh|People's Republic of Bangladesh||BDT|Bangladeshi Taka|+880|bn
|
|
22
|
+
BE|BEL|056|Belgium|Kingdom of Belgium||EUR|Euro|+32|nl,fr,de
|
|
23
|
+
BF|BFA|854|Burkina Faso|||XOF|West African CFA Franc|+226|fr
|
|
24
|
+
BG|BGR|100|Bulgaria|Republic of Bulgaria||BGN|Bulgarian Lev|+359|bg
|
|
25
|
+
BH|BHR|048|Bahrain|Kingdom of Bahrain||BHD|Bahraini Dinar|+973|ar
|
|
26
|
+
BI|BDI|108|Burundi|Republic of Burundi||BIF|Burundian Franc|+257|rn,fr,en
|
|
27
|
+
BJ|BEN|204|Benin|Republic of Benin||XOF|West African CFA Franc|+229|fr
|
|
28
|
+
BL|BLM|652|Saint Barthélemy|||EUR|Euro|+590|fr
|
|
29
|
+
BM|BMU|060|Bermuda|||BMD|Bermudan Dollar|+1|en
|
|
30
|
+
BN|BRN|096|Brunei Darussalam|||BND|Brunei Dollar|+673|ms,ms_Arab
|
|
31
|
+
BO|BOL|068|Bolivia, Plurinational State of|Plurinational State of Bolivia|Bolivia|BOB|Bolivian Boliviano|+591|es,qu,ay
|
|
32
|
+
BQ|BES|535|Bonaire, Sint Eustatius and Saba|Bonaire, Sint Eustatius and Saba||USD|US Dollar|+599|nl
|
|
33
|
+
BR|BRA|076|Brazil|Federative Republic of Brazil||BRL|Brazilian Real|+55|pt
|
|
34
|
+
BS|BHS|044|Bahamas|Commonwealth of the Bahamas||BSD|Bahamian Dollar|+1|en
|
|
35
|
+
BT|BTN|064|Bhutan|Kingdom of Bhutan||INR|Indian Rupee|+975|dz
|
|
36
|
+
BV|BVT|074|Bouvet Island|||NOK|Norwegian Krone||
|
|
37
|
+
BW|BWA|072|Botswana|Republic of Botswana||BWP|Botswanan Pula|+267|en,tn
|
|
38
|
+
BY|BLR|112|Belarus|Republic of Belarus||BYN|Belarusian Ruble|+375|be,ru
|
|
39
|
+
BZ|BLZ|084|Belize|||BZD|Belize Dollar|+501|en
|
|
40
|
+
CA|CAN|124|Canada|||CAD|Canadian Dollar|+1|en,fr
|
|
41
|
+
CC|CCK|166|Cocos (Keeling) Islands|||AUD|Australian Dollar|+61|en
|
|
42
|
+
CD|COD|180|Congo, The Democratic Republic of the|||CDF|Congolese Franc|+243|fr
|
|
43
|
+
CF|CAF|140|Central African Republic|||XAF|Central African CFA Franc|+236|sg,fr
|
|
44
|
+
CG|COG|178|Congo|Republic of the Congo||XAF|Central African CFA Franc|+242|fr
|
|
45
|
+
CH|CHE|756|Switzerland|Swiss Confederation||CHF|Swiss Franc|+41|de,gsw,fr,it
|
|
46
|
+
CI|CIV|384|Côte d'Ivoire|Republic of Côte d'Ivoire||XOF|West African CFA Franc|+225|fr
|
|
47
|
+
CK|COK|184|Cook Islands|||NZD|New Zealand Dollar|+682|en
|
|
48
|
+
CL|CHL|152|Chile|Republic of Chile||CLP|Chilean Peso|+56|es
|
|
49
|
+
CM|CMR|120|Cameroon|Republic of Cameroon||XAF|Central African CFA Franc|+237|fr,en
|
|
50
|
+
CN|CHN|156|China|People's Republic of China||CNY|Chinese Yuan|+86|zh
|
|
51
|
+
CO|COL|170|Colombia|Republic of Colombia||COP|Colombian Peso|+57|es
|
|
52
|
+
CR|CRI|188|Costa Rica|Republic of Costa Rica||CRC|Costa Rican Colón|+506|es
|
|
53
|
+
CU|CUB|192|Cuba|Republic of Cuba||CUP|Cuban Peso|+53|es
|
|
54
|
+
CV|CPV|132|Cabo Verde|Republic of Cabo Verde||CVE|Cape Verdean Escudo|+238|pt
|
|
55
|
+
CW|CUW|531|Curaçao|Curaçao||XCG|Caribbean guilder|+599|pap,nl
|
|
56
|
+
CX|CXR|162|Christmas Island|||AUD|Australian Dollar|+61|en
|
|
57
|
+
CY|CYP|196|Cyprus|Republic of Cyprus||EUR|Euro|+357|el,tr
|
|
58
|
+
CZ|CZE|203|Czechia|Czech Republic||CZK|Czech Koruna|+420|cs
|
|
59
|
+
DE|DEU|276|Germany|Federal Republic of Germany||EUR|Euro|+49|de
|
|
60
|
+
DJ|DJI|262|Djibouti|Republic of Djibouti||DJF|Djiboutian Franc|+253|fr,ar
|
|
61
|
+
DK|DNK|208|Denmark|Kingdom of Denmark||DKK|Danish Krone|+45|da
|
|
62
|
+
DM|DMA|212|Dominica|Commonwealth of Dominica||XCD|East Caribbean Dollar|+1|en
|
|
63
|
+
DO|DOM|214|Dominican Republic|||DOP|Dominican Peso|+1|es
|
|
64
|
+
DZ|DZA|012|Algeria|People's Democratic Republic of Algeria||DZD|Algerian Dinar|+213|ar,fr
|
|
65
|
+
EC|ECU|218|Ecuador|Republic of Ecuador||USD|US Dollar|+593|es,qu
|
|
66
|
+
EE|EST|233|Estonia|Republic of Estonia||EUR|Euro|+372|et
|
|
67
|
+
EG|EGY|818|Egypt|Arab Republic of Egypt||EGP|Egyptian Pound|+20|ar
|
|
68
|
+
EH|ESH|732|Western Sahara|||MAD|Moroccan Dirham|+212|ar
|
|
69
|
+
ER|ERI|232|Eritrea|the State of Eritrea||ERN|Eritrean Nakfa|+291|ti,en,ar
|
|
70
|
+
ES|ESP|724|Spain|Kingdom of Spain||EUR|Euro|+34|es
|
|
71
|
+
ET|ETH|231|Ethiopia|Federal Democratic Republic of Ethiopia||ETB|Ethiopian Birr|+251|am
|
|
72
|
+
FI|FIN|246|Finland|Republic of Finland||EUR|Euro|+358|fi,sv
|
|
73
|
+
FJ|FJI|242|Fiji|Republic of Fiji||FJD|Fijian Dollar|+679|en,hif,fj
|
|
74
|
+
FK|FLK|238|Falkland Islands (Malvinas)|||FKP|Falkland Islands Pound|+500|en
|
|
75
|
+
FM|FSM|583|Micronesia, Federated States of|Federated States of Micronesia||USD|US Dollar|+691|en
|
|
76
|
+
FO|FRO|234|Faroe Islands|||DKK|Danish Krone|+298|fo
|
|
77
|
+
FR|FRA|250|France|French Republic||EUR|Euro|+33|fr
|
|
78
|
+
GA|GAB|266|Gabon|Gabonese Republic||XAF|Central African CFA Franc|+241|fr
|
|
79
|
+
GB|GBR|826|United Kingdom|United Kingdom of Great Britain and Northern Ireland||GBP|British Pound|+44|en
|
|
80
|
+
GD|GRD|308|Grenada|||XCD|East Caribbean Dollar|+1|en
|
|
81
|
+
GE|GEO|268|Georgia|||GEL|Georgian Lari|+995|ka
|
|
82
|
+
GF|GUF|254|French Guiana|||EUR|Euro|+594|fr
|
|
83
|
+
GG|GGY|831|Guernsey|||GBP|British Pound|+44|en
|
|
84
|
+
GH|GHA|288|Ghana|Republic of Ghana||GHS|Ghanaian Cedi|+233|en
|
|
85
|
+
GI|GIB|292|Gibraltar|||GIP|Gibraltar Pound|+350|en
|
|
86
|
+
GL|GRL|304|Greenland|||DKK|Danish Krone|+299|kl
|
|
87
|
+
GM|GMB|270|Gambia|Republic of the Gambia||GMD|Gambian Dalasi|+220|en
|
|
88
|
+
GN|GIN|324|Guinea|Republic of Guinea||GNF|Guinean Franc|+224|fr
|
|
89
|
+
GP|GLP|312|Guadeloupe|||EUR|Euro|+590|fr
|
|
90
|
+
GQ|GNQ|226|Equatorial Guinea|Republic of Equatorial Guinea||XAF|Central African CFA Franc|+240|es,fr,pt
|
|
91
|
+
GR|GRC|300|Greece|Hellenic Republic||EUR|Euro|+30|el
|
|
92
|
+
GS|SGS|239|South Georgia and the South Sandwich Islands|||GBP|British Pound||en
|
|
93
|
+
GT|GTM|320|Guatemala|Republic of Guatemala||GTQ|Guatemalan Quetzal|+502|es
|
|
94
|
+
GU|GUM|316|Guam|||USD|US Dollar|+1|en,ch
|
|
95
|
+
GW|GNB|624|Guinea-Bissau|Republic of Guinea-Bissau||XOF|West African CFA Franc|+245|pt
|
|
96
|
+
GY|GUY|328|Guyana|Republic of Guyana||GYD|Guyanaese Dollar|+592|en
|
|
97
|
+
HK|HKG|344|Hong Kong|Hong Kong Special Administrative Region of China||HKD|Hong Kong Dollar|+852|zh_Hant,en
|
|
98
|
+
HM|HMD|334|Heard Island and McDonald Islands|||AUD|Australian Dollar||
|
|
99
|
+
HN|HND|340|Honduras|Republic of Honduras||HNL|Honduran Lempira|+504|es
|
|
100
|
+
HR|HRV|191|Croatia|Republic of Croatia||EUR|Euro|+385|hr
|
|
101
|
+
HT|HTI|332|Haiti|Republic of Haiti||HTG|Haitian Gourde|+509|ht,fr
|
|
102
|
+
HU|HUN|348|Hungary|Hungary||HUF|Hungarian Forint|+36|hu
|
|
103
|
+
ID|IDN|360|Indonesia|Republic of Indonesia||IDR|Indonesian Rupiah|+62|id
|
|
104
|
+
IE|IRL|372|Ireland|||EUR|Euro|+353|en,ga
|
|
105
|
+
IL|ISR|376|Israel|State of Israel||ILS|Israeli New Shekel|+972|he,ar
|
|
106
|
+
IM|IMN|833|Isle of Man|||GBP|British Pound|+44|en,gv
|
|
107
|
+
IN|IND|356|India|Republic of India||INR|Indian Rupee|+91|hi,en
|
|
108
|
+
IO|IOT|086|British Indian Ocean Territory|||USD|US Dollar|+246|en
|
|
109
|
+
IQ|IRQ|368|Iraq|Republic of Iraq||IQD|Iraqi Dinar|+964|ar
|
|
110
|
+
IR|IRN|364|Iran, Islamic Republic of|Islamic Republic of Iran|Iran|IRR|Iranian Rial|+98|fa
|
|
111
|
+
IS|ISL|352|Iceland|Republic of Iceland||ISK|Icelandic Króna|+354|is
|
|
112
|
+
IT|ITA|380|Italy|Italian Republic||EUR|Euro|+39|it
|
|
113
|
+
JE|JEY|832|Jersey|||GBP|British Pound|+44|en
|
|
114
|
+
JM|JAM|388|Jamaica|||JMD|Jamaican Dollar|+1|en
|
|
115
|
+
JO|JOR|400|Jordan|Hashemite Kingdom of Jordan||JOD|Jordanian Dinar|+962|ar
|
|
116
|
+
JP|JPN|392|Japan|||JPY|Japanese Yen|+81|ja
|
|
117
|
+
KE|KEN|404|Kenya|Republic of Kenya||KES|Kenyan Shilling|+254|sw,en
|
|
118
|
+
KG|KGZ|417|Kyrgyzstan|Kyrgyz Republic||KGS|Kyrgystani Som|+996|ky,ru
|
|
119
|
+
KH|KHM|116|Cambodia|Kingdom of Cambodia||KHR|Cambodian Riel|+855|km
|
|
120
|
+
KI|KIR|296|Kiribati|Republic of Kiribati||AUD|Australian Dollar|+686|en,gil
|
|
121
|
+
KM|COM|174|Comoros|Union of the Comoros||KMF|Comorian Franc|+269|ar,zdj,wni,fr
|
|
122
|
+
KN|KNA|659|Saint Kitts and Nevis|||XCD|East Caribbean Dollar|+1|en
|
|
123
|
+
KP|PRK|408|Korea, Democratic People's Republic of|Democratic People's Republic of Korea|North Korea|KPW|North Korean Won|+850|ko
|
|
124
|
+
KR|KOR|410|Korea, Republic of||South Korea|KRW|South Korean Won|+82|ko
|
|
125
|
+
KW|KWT|414|Kuwait|State of Kuwait||KWD|Kuwaiti Dinar|+965|ar
|
|
126
|
+
KY|CYM|136|Cayman Islands|||KYD|Cayman Islands Dollar|+1|en
|
|
127
|
+
KZ|KAZ|398|Kazakhstan|Republic of Kazakhstan||KZT|Kazakhstani Tenge|+7|ru,kk
|
|
128
|
+
LA|LAO|418|Lao People's Democratic Republic||Laos|LAK|Laotian Kip|+856|lo
|
|
129
|
+
LB|LBN|422|Lebanon|Lebanese Republic||LBP|Lebanese Pound|+961|ar
|
|
130
|
+
LC|LCA|662|Saint Lucia|||XCD|East Caribbean Dollar|+1|en
|
|
131
|
+
LI|LIE|438|Liechtenstein|Principality of Liechtenstein||CHF|Swiss Franc|+423|de,gsw
|
|
132
|
+
LK|LKA|144|Sri Lanka|Democratic Socialist Republic of Sri Lanka||LKR|Sri Lankan Rupee|+94|si,ta
|
|
133
|
+
LR|LBR|430|Liberia|Republic of Liberia||LRD|Liberian Dollar|+231|en
|
|
134
|
+
LS|LSO|426|Lesotho|Kingdom of Lesotho||ZAR|South African Rand|+266|st,en
|
|
135
|
+
LT|LTU|440|Lithuania|Republic of Lithuania||EUR|Euro|+370|lt
|
|
136
|
+
LU|LUX|442|Luxembourg|Grand Duchy of Luxembourg||EUR|Euro|+352|fr,lb,de
|
|
137
|
+
LV|LVA|428|Latvia|Republic of Latvia||EUR|Euro|+371|lv
|
|
138
|
+
LY|LBY|434|Libya|Libya||LYD|Libyan Dinar|+218|ar
|
|
139
|
+
MA|MAR|504|Morocco|Kingdom of Morocco||MAD|Moroccan Dirham|+212|ar,fr,tzm
|
|
140
|
+
MC|MCO|492|Monaco|Principality of Monaco||EUR|Euro|+377|fr
|
|
141
|
+
MD|MDA|498|Moldova, Republic of|Republic of Moldova|Moldova|MDL|Moldovan Leu|+373|ro
|
|
142
|
+
ME|MNE|499|Montenegro|Montenegro||EUR|Euro|+382|sr_Latn
|
|
143
|
+
MF|MAF|663|Saint Martin (French part)|||EUR|Euro|+590|fr
|
|
144
|
+
MG|MDG|450|Madagascar|Republic of Madagascar||MGA|Malagasy Ariary|+261|mg,fr,en
|
|
145
|
+
MH|MHL|584|Marshall Islands|Republic of the Marshall Islands||USD|US Dollar|+692|en,mh
|
|
146
|
+
MK|MKD|807|North Macedonia|Republic of North Macedonia||MKD|Macedonian Denar|+389|mk
|
|
147
|
+
ML|MLI|466|Mali|Republic of Mali||XOF|West African CFA Franc|+223|fr
|
|
148
|
+
MM|MMR|104|Myanmar|Republic of Myanmar||MMK|Myanmar Kyat|+95|my
|
|
149
|
+
MN|MNG|496|Mongolia|||MNT|Mongolian Tugrik|+976|mn
|
|
150
|
+
MO|MAC|446|Macao|Macao Special Administrative Region of China||MOP|Macanese Pataca|+853|zh_Hant,yue,pt
|
|
151
|
+
MP|MNP|580|Northern Mariana Islands|Commonwealth of the Northern Mariana Islands||USD|US Dollar|+1|en
|
|
152
|
+
MQ|MTQ|474|Martinique|||EUR|Euro|+596|fr
|
|
153
|
+
MR|MRT|478|Mauritania|Islamic Republic of Mauritania||MRU|Mauritanian Ouguiya|+222|ar
|
|
154
|
+
MS|MSR|500|Montserrat|||XCD|East Caribbean Dollar|+1|en
|
|
155
|
+
MT|MLT|470|Malta|Republic of Malta||EUR|Euro|+356|mt,en
|
|
156
|
+
MU|MUS|480|Mauritius|Republic of Mauritius||MUR|Mauritian Rupee|+230|fr,en
|
|
157
|
+
MV|MDV|462|Maldives|Republic of Maldives||MVR|Maldivian Rufiyaa|+960|dv
|
|
158
|
+
MW|MWI|454|Malawi|Republic of Malawi||MWK|Malawian Kwacha|+265|ny,en
|
|
159
|
+
MX|MEX|484|Mexico|United Mexican States||MXN|Mexican Peso|+52|es
|
|
160
|
+
MY|MYS|458|Malaysia|||MYR|Malaysian Ringgit|+60|ms
|
|
161
|
+
MZ|MOZ|508|Mozambique|Republic of Mozambique||MZN|Mozambican Metical|+258|pt
|
|
162
|
+
NA|NAM|516|Namibia|Republic of Namibia||ZAR|South African Rand|+264|en
|
|
163
|
+
NC|NCL|540|New Caledonia|||XPF|CFP Franc|+687|fr
|
|
164
|
+
NE|NER|562|Niger|Republic of the Niger||XOF|West African CFA Franc|+227|fr
|
|
165
|
+
NF|NFK|574|Norfolk Island|||AUD|Australian Dollar|+672|en
|
|
166
|
+
NG|NGA|566|Nigeria|Federal Republic of Nigeria||NGN|Nigerian Naira|+234|en,yo
|
|
167
|
+
NI|NIC|558|Nicaragua|Republic of Nicaragua||NIO|Nicaraguan Córdoba|+505|es
|
|
168
|
+
NL|NLD|528|Netherlands|Kingdom of the Netherlands||EUR|Euro|+31|nl
|
|
169
|
+
NO|NOR|578|Norway|Kingdom of Norway||NOK|Norwegian Krone|+47|no,nb,nn
|
|
170
|
+
NP|NPL|524|Nepal|Federal Democratic Republic of Nepal||NPR|Nepalese Rupee|+977|ne
|
|
171
|
+
NR|NRU|520|Nauru|Republic of Nauru||AUD|Australian Dollar|+674|en,na
|
|
172
|
+
NU|NIU|570|Niue|Niue||NZD|New Zealand Dollar|+683|niu,en
|
|
173
|
+
NZ|NZL|554|New Zealand|||NZD|New Zealand Dollar|+64|en,mi
|
|
174
|
+
OM|OMN|512|Oman|Sultanate of Oman||OMR|Omani Rial|+968|ar
|
|
175
|
+
PA|PAN|591|Panama|Republic of Panama||PAB|Panamanian Balboa|+507|es
|
|
176
|
+
PE|PER|604|Peru|Republic of Peru||PEN|Peruvian Sol|+51|es,qu
|
|
177
|
+
PF|PYF|258|French Polynesia|||XPF|CFP Franc|+689|fr,ty
|
|
178
|
+
PG|PNG|598|Papua New Guinea|Independent State of Papua New Guinea||PGK|Papua New Guinean Kina|+675|tpi,en,ho
|
|
179
|
+
PH|PHL|608|Philippines|Republic of the Philippines||PHP|Philippine Peso|+63|en,fil
|
|
180
|
+
PK|PAK|586|Pakistan|Islamic Republic of Pakistan||PKR|Pakistani Rupee|+92|ur,en
|
|
181
|
+
PL|POL|616|Poland|Republic of Poland||PLN|Polish Zloty|+48|pl
|
|
182
|
+
PM|SPM|666|Saint Pierre and Miquelon|||EUR|Euro|+508|fr
|
|
183
|
+
PN|PCN|612|Pitcairn|||NZD|New Zealand Dollar||en
|
|
184
|
+
PR|PRI|630|Puerto Rico|||USD|US Dollar|+1|es,en
|
|
185
|
+
PS|PSE|275|Palestine, State of|the State of Palestine||ILS|Israeli New Shekel|+970|ar
|
|
186
|
+
PT|PRT|620|Portugal|Portuguese Republic||EUR|Euro|+351|pt
|
|
187
|
+
PW|PLW|585|Palau|Republic of Palau||USD|US Dollar|+680|pau,en
|
|
188
|
+
PY|PRY|600|Paraguay|Republic of Paraguay||PYG|Paraguayan Guarani|+595|gn,es
|
|
189
|
+
QA|QAT|634|Qatar|State of Qatar||QAR|Qatari Riyal|+974|ar
|
|
190
|
+
RE|REU|638|Réunion|||EUR|Euro|+262|fr
|
|
191
|
+
RO|ROU|642|Romania|||RON|Romanian Leu|+40|ro
|
|
192
|
+
RS|SRB|688|Serbia|Republic of Serbia||RSD|Serbian Dinar|+381|sr_Latn,sr
|
|
193
|
+
RU|RUS|643|Russian Federation|||RUB|Russian Ruble|+7|ru
|
|
194
|
+
RW|RWA|646|Rwanda|Rwandese Republic||RWF|Rwandan Franc|+250|rw,en,fr
|
|
195
|
+
SA|SAU|682|Saudi Arabia|Kingdom of Saudi Arabia||SAR|Saudi Riyal|+966|ar
|
|
196
|
+
SB|SLB|090|Solomon Islands|||SBD|Solomon Islands Dollar|+677|en
|
|
197
|
+
SC|SYC|690|Seychelles|Republic of Seychelles||SCR|Seychellois Rupee|+248|fr,en
|
|
198
|
+
SD|SDN|729|Sudan|Republic of the Sudan||SDG|Sudanese Pound|+249|en,ar
|
|
199
|
+
SE|SWE|752|Sweden|Kingdom of Sweden||SEK|Swedish Krona|+46|sv
|
|
200
|
+
SG|SGP|702|Singapore|Republic of Singapore||SGD|Singapore Dollar|+65|en,zh,ms,ta
|
|
201
|
+
SH|SHN|654|Saint Helena, Ascension and Tristan da Cunha|||SHP|St. Helena Pound|+290|en
|
|
202
|
+
SI|SVN|705|Slovenia|Republic of Slovenia||EUR|Euro|+386|sl
|
|
203
|
+
SJ|SJM|744|Svalbard and Jan Mayen|||NOK|Norwegian Krone|+47|nb
|
|
204
|
+
SK|SVK|703|Slovakia|Slovak Republic||EUR|Euro|+421|sk
|
|
205
|
+
SL|SLE|694|Sierra Leone|Republic of Sierra Leone||SLE|Sierra Leonean Leone|+232|en
|
|
206
|
+
SM|SMR|674|San Marino|Republic of San Marino||EUR|Euro|+378|it
|
|
207
|
+
SN|SEN|686|Senegal|Republic of Senegal||XOF|West African CFA Franc|+221|wo,fr
|
|
208
|
+
SO|SOM|706|Somalia|Federal Republic of Somalia||SOS|Somali Shilling|+252|so,ar
|
|
209
|
+
SR|SUR|740|Suriname|Republic of Suriname||SRD|Surinamese Dollar|+597|nl
|
|
210
|
+
SS|SSD|728|South Sudan|Republic of South Sudan||SSP|South Sudanese Pound|+211|en
|
|
211
|
+
ST|STP|678|Sao Tome and Principe|Democratic Republic of Sao Tome and Principe||STN|São Tomé & Príncipe Dobra|+239|pt
|
|
212
|
+
SV|SLV|222|El Salvador|Republic of El Salvador||USD|US Dollar|+503|es
|
|
213
|
+
SX|SXM|534|Sint Maarten (Dutch part)|Sint Maarten (Dutch part)||XCG|Caribbean guilder|+1|en,nl
|
|
214
|
+
SY|SYR|760|Syrian Arab Republic||Syria|SYP|Syrian Pound|+963|ar
|
|
215
|
+
SZ|SWZ|748|Eswatini|Kingdom of Eswatini||SZL|Swazi Lilangeni|+268|en,ss
|
|
216
|
+
TC|TCA|796|Turks and Caicos Islands|||USD|US Dollar|+1|en
|
|
217
|
+
TD|TCD|148|Chad|Republic of Chad||XAF|Central African CFA Franc|+235|ar,fr
|
|
218
|
+
TF|ATF|260|French Southern Territories|||EUR|Euro||
|
|
219
|
+
TG|TGO|768|Togo|Togolese Republic||XOF|West African CFA Franc|+228|fr
|
|
220
|
+
TH|THA|764|Thailand|Kingdom of Thailand||THB|Thai Baht|+66|th
|
|
221
|
+
TJ|TJK|762|Tajikistan|Republic of Tajikistan||TJS|Tajikistani Somoni|+992|tg
|
|
222
|
+
TK|TKL|772|Tokelau|||NZD|New Zealand Dollar|+690|tkl,en
|
|
223
|
+
TL|TLS|626|Timor-Leste|Democratic Republic of Timor-Leste||USD|US Dollar|+670|tet,pt
|
|
224
|
+
TM|TKM|795|Turkmenistan|||TMT|Turkmenistani Manat|+993|tk
|
|
225
|
+
TN|TUN|788|Tunisia|Republic of Tunisia||TND|Tunisian Dinar|+216|ar,fr
|
|
226
|
+
TO|TON|776|Tonga|Kingdom of Tonga||TOP|Tongan Paʻanga|+676|to,en
|
|
227
|
+
TR|TUR|792|Türkiye|Republic of Türkiye||TRY|Turkish Lira|+90|tr
|
|
228
|
+
TT|TTO|780|Trinidad and Tobago|Republic of Trinidad and Tobago||TTD|Trinidad & Tobago Dollar|+1|en
|
|
229
|
+
TV|TUV|798|Tuvalu|||AUD|Australian Dollar|+688|tvl,en
|
|
230
|
+
TW|TWN|158|Taiwan, Province of China|Taiwan, Province of China|Taiwan|TWD|New Taiwan Dollar|+886|zh_Hant,nan_Hant,hak_Hant
|
|
231
|
+
TZ|TZA|834|Tanzania, United Republic of|United Republic of Tanzania|Tanzania|TZS|Tanzanian Shilling|+255|sw,en
|
|
232
|
+
UA|UKR|804|Ukraine|||UAH|Ukrainian Hryvnia|+380|uk,ru
|
|
233
|
+
UG|UGA|800|Uganda|Republic of Uganda||UGX|Ugandan Shilling|+256|sw,en
|
|
234
|
+
UM|UMI|581|United States Minor Outlying Islands|||USD|US Dollar||en
|
|
235
|
+
US|USA|840|United States|United States of America||USD|US Dollar|+1|en
|
|
236
|
+
UY|URY|858|Uruguay|Eastern Republic of Uruguay||UYU|Uruguayan Peso|+598|es
|
|
237
|
+
UZ|UZB|860|Uzbekistan|Republic of Uzbekistan||UZS|Uzbekistani Som|+998|uz,uz_Cyrl
|
|
238
|
+
VA|VAT|336|Holy See (Vatican City State)|||EUR|Euro|+39|it
|
|
239
|
+
VC|VCT|670|Saint Vincent and the Grenadines|||XCD|East Caribbean Dollar|+1|en
|
|
240
|
+
VE|VEN|862|Venezuela, Bolivarian Republic of|Bolivarian Republic of Venezuela|Venezuela|VES|Venezuelan Bolívar|+58|es
|
|
241
|
+
VG|VGB|092|Virgin Islands, British|British Virgin Islands||USD|US Dollar|+1|en
|
|
242
|
+
VI|VIR|850|Virgin Islands, U.S.|Virgin Islands of the United States||USD|US Dollar|+1|en
|
|
243
|
+
VN|VNM|704|Viet Nam|Socialist Republic of Viet Nam|Vietnam|VND|Vietnamese Dong|+84|vi
|
|
244
|
+
VU|VUT|548|Vanuatu|Republic of Vanuatu||VUV|Vanuatu Vatu|+678|bi,en,fr
|
|
245
|
+
WF|WLF|876|Wallis and Futuna|||XPF|CFP Franc|+681|fr
|
|
246
|
+
WS|WSM|882|Samoa|Independent State of Samoa||WST|Samoan Tala|+685|sm,en
|
|
247
|
+
XK||||||EUR|Euro|+383|sq,sr_Latn,sr
|
|
248
|
+
YE|YEM|887|Yemen|Republic of Yemen||YER|Yemeni Rial|+967|ar
|
|
249
|
+
YT|MYT|175|Mayotte|||EUR|Euro|+262|fr
|
|
250
|
+
ZA|ZAF|710|South Africa|Republic of South Africa||ZAR|South African Rand|+27|en
|
|
251
|
+
ZM|ZMB|894|Zambia|Republic of Zambia||ZMW|Zambian Kwacha|+260|en
|
|
252
|
+
ZW|ZWE|716|Zimbabwe|Republic of Zimbabwe||USD|US Dollar|+263|sn,en,nd
|
|
252
253
|
`
|
|
253
254
|
.trim()
|
|
254
255
|
.split("\n");
|
package/dist/countries.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"countries.js","sourceRoot":"","sources":["../src/countries.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"countries.js","sourceRoot":"","sources":["../src/countries.ts"],"names":[],"mappings":"AAAA,wFAAwF;AAExF,MAAM,CAAC,MAAM,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2PxB;KACE,IAAI,EAAE;KACN,KAAK,CAAC,IAAI,CAAC,CAAC"}
|
package/dist/derive.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export declare const SERVERS: Set<string>;
|
|
3
3
|
export declare const ACCESS: Set<string>;
|
|
4
4
|
export declare const PROXIES: Set<string>;
|
|
5
|
+
export declare const CRAWLER = "search_engine_spider";
|
|
5
6
|
/** The name a network goes by: its handle where the company only spells it out. */
|
|
6
7
|
export declare const brand: (handle: string, company: string) => string;
|
|
7
8
|
/** The bare host the website names, else the one the abuse mailbox does. */
|
package/dist/derive.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"derive.d.ts","sourceRoot":"","sources":["../src/derive.ts"],"names":[],"mappings":"AAAA,sEAAsE;AAmCtE,eAAO,MAAM,OAAO,aAAyC,CAAC;AAC9D,eAAO,MAAM,MAAM,aAAuC,CAAC;AAC3D,eAAO,MAAM,OAAO,aAAiD,CAAC;
|
|
1
|
+
{"version":3,"file":"derive.d.ts","sourceRoot":"","sources":["../src/derive.ts"],"names":[],"mappings":"AAAA,sEAAsE;AAmCtE,eAAO,MAAM,OAAO,aAAyC,CAAC;AAC9D,eAAO,MAAM,MAAM,aAAuC,CAAC;AAC3D,eAAO,MAAM,OAAO,aAAiD,CAAC;AACtE,eAAO,MAAM,OAAO,yBAAyB,CAAC;AAuF9C,mFAAmF;AACnF,eAAO,MAAM,KAAK,WAAY,MAAM,WAAW,MAAM,KAAG,MACtB,CAAC;AAanC,4EAA4E;AAC5E,eAAO,MAAM,MAAM,YAAa,MAAM,WAAW,MAAM,KAAG,MACtB,CAAC;AAErC,0EAA0E;AAC1E,eAAO,MAAM,OAAO,UAAW,MAAM,YAAY,MAAM,KAAG,CAAC,MAAM,EAAE,MAAM,CAGxD,CAAC;AAElB,kFAAkF;AAClF,eAAO,MAAM,OAAO,aAAc,MAAM,KAAG,MAAkC,CAAC"}
|
package/dist/derive.js
CHANGED
|
@@ -4,7 +4,7 @@ const FORMS = words("inc incorporated llc ltd ltda limited gmbh mbh ag kgaa ohg
|
|
|
4
4
|
" sau sal saog sac sas sarl srl spa nv bv cv asa aps oyj kft zrt nyrt doo" +
|
|
5
5
|
" sro ooo zao pao pjsc jsc ojsc llp plc pte pteltd pty corp corporation" +
|
|
6
6
|
" company holding holdings group uab sia tov oao pt sdn bhd coltd coltda" +
|
|
7
|
-
" eireli ead ood eood sti ltdsti spzoo");
|
|
7
|
+
" eireli ead ood eood sti ltdsti spzoo anonim sirketi tbk");
|
|
8
8
|
const TAILS = words("de me epp co as ab ad dd bt lc lp se sl slu sp z oo zoo oy ao esp kg network" +
|
|
9
9
|
" networks net telecom telecoms telecommunication telecommunications" +
|
|
10
10
|
" telecomunicaciones comunicaciones communication communications hosting" +
|
|
@@ -13,7 +13,7 @@ const TAILS = words("de me epp co as ab ad dd bt lc lp se sl slu sp z oo zoo oy
|
|
|
13
13
|
" enterprises enterprise backbone provider providers of and");
|
|
14
14
|
const LEAD = words("the llc ltd gmbh sarl ooo zao pao ao oao jsc ojsc pjsc uab sia tov pt pp ps" +
|
|
15
15
|
" ip spolka");
|
|
16
|
-
const
|
|
16
|
+
const LEGAL = new Set([...FORMS, ""]);
|
|
17
17
|
const TLDS = [".com", ".net", ".org", ".io"];
|
|
18
18
|
const TRADING = /^.*\b(?:trading as|d\/b\/a|dba)\b\s*/i;
|
|
19
19
|
const ALIAS = /\(.*?\)|,.*|\s+-\s+.*/g;
|
|
@@ -26,6 +26,7 @@ const QUOTES = /^["']+|["']+$/g;
|
|
|
26
26
|
export const SERVERS = new Set(["hosting", "cdn", "content"]);
|
|
27
27
|
export const ACCESS = new Set(["residential", "cellular"]);
|
|
28
28
|
export const PROXIES = new Set(["public_proxy", "residential_proxy"]);
|
|
29
|
+
export const CRAWLER = "search_engine_spider";
|
|
29
30
|
const CAPITALS = {
|
|
30
31
|
"national capital": "country",
|
|
31
32
|
"regional capital": "region",
|
|
@@ -59,16 +60,18 @@ const cased = (text) => text
|
|
|
59
60
|
.split(" ")
|
|
60
61
|
.map((word) => (shouts(word) ? titled(word) : word))
|
|
61
62
|
.join(" ");
|
|
63
|
+
const trailing = (tokens) => {
|
|
64
|
+
const word = (tokens[tokens.length - 1] ?? "").toLowerCase().replace(BARE, "");
|
|
65
|
+
return (tokens.length > 1 && LEGAL.has(word)) || (tokens.length > 2 && TAILS.has(word));
|
|
66
|
+
};
|
|
62
67
|
const fromCompany = (company) => {
|
|
63
68
|
const held = company.replace(TRADING, "").replace(ALIAS, "");
|
|
64
69
|
const tokens = held
|
|
65
70
|
.split(/\s+/)
|
|
66
71
|
.map((word) => word.replace(QUOTES, ""))
|
|
67
72
|
.filter(Boolean);
|
|
68
|
-
while (tokens
|
|
69
|
-
TAIL.has(tokens[tokens.length - 1].toLowerCase().replace(BARE, ""))) {
|
|
73
|
+
while (trailing(tokens))
|
|
70
74
|
tokens.pop();
|
|
71
|
-
}
|
|
72
75
|
while (tokens.length && LEAD.has(tokens[0].toLowerCase().replace(BARE, ""))) {
|
|
73
76
|
tokens.shift();
|
|
74
77
|
}
|
|
@@ -77,7 +80,8 @@ const fromCompany = (company) => {
|
|
|
77
80
|
return cased(tld ? name.slice(0, name.length - tld.length) : name);
|
|
78
81
|
};
|
|
79
82
|
const fromHandle = (handle) => {
|
|
80
|
-
const
|
|
83
|
+
const words = handle.split(/\s+/).filter(Boolean);
|
|
84
|
+
const first = words.length === 1 ? words[0] : "";
|
|
81
85
|
let head = first.replace(HANDLE_TAIL, "");
|
|
82
86
|
if (NUMBERED.test(head))
|
|
83
87
|
return "";
|
|
@@ -90,6 +94,8 @@ const branded = kept((key) => {
|
|
|
90
94
|
const [handle, company] = split(key);
|
|
91
95
|
const legal = fromCompany(company);
|
|
92
96
|
const short = fromHandle(handle);
|
|
97
|
+
if (company.toLowerCase() === handle.toLowerCase())
|
|
98
|
+
return short || legal;
|
|
93
99
|
if (!legal || !short)
|
|
94
100
|
return legal || short;
|
|
95
101
|
if (legal.toLowerCase() === short.toLowerCase()) {
|