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.
Files changed (63) hide show
  1. package/README.md +78 -13
  2. package/dist/cli.d.ts +4 -0
  3. package/dist/cli.d.ts.map +1 -0
  4. package/dist/cli.js +16 -0
  5. package/dist/cli.js.map +1 -0
  6. package/dist/compress.d.ts +5 -0
  7. package/dist/compress.d.ts.map +1 -0
  8. package/dist/compress.js +954 -0
  9. package/dist/compress.js.map +1 -0
  10. package/dist/countries.d.ts +1 -1
  11. package/dist/countries.d.ts.map +1 -1
  12. package/dist/countries.js +251 -250
  13. package/dist/countries.js.map +1 -1
  14. package/dist/derive.d.ts +1 -0
  15. package/dist/derive.d.ts.map +1 -1
  16. package/dist/derive.js +12 -6
  17. package/dist/derive.js.map +1 -1
  18. package/dist/estimate.d.ts +38 -0
  19. package/dist/estimate.d.ts.map +1 -0
  20. package/dist/estimate.js +263 -0
  21. package/dist/estimate.js.map +1 -0
  22. package/dist/extra.d.ts.map +1 -1
  23. package/dist/extra.js +12 -12
  24. package/dist/extra.js.map +1 -1
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +51 -6
  27. package/dist/index.js.map +1 -1
  28. package/dist/leaves.d.ts +30 -0
  29. package/dist/leaves.d.ts.map +1 -0
  30. package/dist/leaves.js +183 -0
  31. package/dist/leaves.js.map +1 -0
  32. package/dist/lzma.d.ts +18 -0
  33. package/dist/lzma.d.ts.map +1 -1
  34. package/dist/lzma.js +18 -18
  35. package/dist/lzma.js.map +1 -1
  36. package/dist/matcher.d.ts +25 -0
  37. package/dist/matcher.d.ts.map +1 -0
  38. package/dist/matcher.js +198 -0
  39. package/dist/matcher.js.map +1 -0
  40. package/dist/models.d.ts +7 -0
  41. package/dist/models.d.ts.map +1 -1
  42. package/dist/plevin.min.js +258 -257
  43. package/dist/reader.d.ts.map +1 -1
  44. package/dist/reader.js +12 -1
  45. package/dist/reader.js.map +1 -1
  46. package/dist/selection.d.ts +34 -0
  47. package/dist/selection.d.ts.map +1 -0
  48. package/dist/selection.js +338 -0
  49. package/dist/selection.js.map +1 -0
  50. package/dist/slim.d.ts +21 -0
  51. package/dist/slim.d.ts.map +1 -0
  52. package/dist/slim.js +639 -0
  53. package/dist/slim.js.map +1 -0
  54. package/dist/slim.min.js +1 -0
  55. package/dist/stats.d.ts +61 -0
  56. package/dist/stats.d.ts.map +1 -0
  57. package/dist/stats.js +368 -0
  58. package/dist/stats.js.map +1 -0
  59. package/dist/writer.d.ts +32 -0
  60. package/dist/writer.d.ts.map +1 -0
  61. package/dist/writer.js +325 -0
  62. package/dist/writer.js.map +1 -0
  63. package/package.json +7 -2
package/dist/countries.js CHANGED
@@ -1,254 +1,255 @@
1
- /** ISO 3166 as one string: code, iso3, numeric, name and any official or common name. */
1
+ /** Per country: code, iso3, numeric, three names, currency, calling code, languages. */
2
2
  export const COUNTRIES = `
3
- ADAND020Andorra|Principality of Andorra|
4
- AEARE784United Arab Emirates
5
- AFAFG004Afghanistan|Islamic Republic of Afghanistan|
6
- AGATG028Antigua and Barbuda
7
- AIAIA660Anguilla
8
- ALALB008Albania|Republic of Albania|
9
- AMARM051Armenia|Republic of Armenia|
10
- AOAGO024Angola|Republic of Angola|
11
- AQATA010Antarctica
12
- ARARG032Argentina|Argentine Republic|
13
- ASASM016American Samoa
14
- ATAUT040Austria|Republic of Austria|
15
- AUAUS036Australia
16
- AWABW533Aruba
17
- AXALA248Åland Islands
18
- AZAZE031Azerbaijan|Republic of Azerbaijan|
19
- BABIH070Bosnia and Herzegovina|Republic of Bosnia and Herzegovina|
20
- BBBRB052Barbados
21
- BDBGD050Bangladesh|People's Republic of Bangladesh|
22
- BEBEL056Belgium|Kingdom of Belgium|
23
- BFBFA854Burkina Faso
24
- BGBGR100Bulgaria|Republic of Bulgaria|
25
- BHBHR048Bahrain|Kingdom of Bahrain|
26
- BIBDI108Burundi|Republic of Burundi|
27
- BJBEN204Benin|Republic of Benin|
28
- BLBLM652Saint Barthélemy
29
- BMBMU060Bermuda
30
- BNBRN096Brunei Darussalam
31
- BOBOL068Bolivia, Plurinational State of|Plurinational State of Bolivia|Bolivia
32
- BQBES535Bonaire, Sint Eustatius and Saba|Bonaire, Sint Eustatius and Saba|
33
- BRBRA076Brazil|Federative Republic of Brazil|
34
- BSBHS044Bahamas|Commonwealth of the Bahamas|
35
- BTBTN064Bhutan|Kingdom of Bhutan|
36
- BVBVT074Bouvet Island
37
- BWBWA072Botswana|Republic of Botswana|
38
- BYBLR112Belarus|Republic of Belarus|
39
- BZBLZ084Belize
40
- CACAN124Canada
41
- CCCCK166Cocos (Keeling) Islands
42
- CDCOD180Congo, The Democratic Republic of the
43
- CFCAF140Central African Republic
44
- CGCOG178Congo|Republic of the Congo|
45
- CHCHE756Switzerland|Swiss Confederation|
46
- CICIV384Côte d'Ivoire|Republic of Côte d'Ivoire|
47
- CKCOK184Cook Islands
48
- CLCHL152Chile|Republic of Chile|
49
- CMCMR120Cameroon|Republic of Cameroon|
50
- CNCHN156China|People's Republic of China|
51
- COCOL170Colombia|Republic of Colombia|
52
- CRCRI188Costa Rica|Republic of Costa Rica|
53
- CUCUB192Cuba|Republic of Cuba|
54
- CVCPV132Cabo Verde|Republic of Cabo Verde|
55
- CWCUW531Curaçao|Curaçao|
56
- CXCXR162Christmas Island
57
- CYCYP196Cyprus|Republic of Cyprus|
58
- CZCZE203Czechia|Czech Republic|
59
- DEDEU276Germany|Federal Republic of Germany|
60
- DJDJI262Djibouti|Republic of Djibouti|
61
- DKDNK208Denmark|Kingdom of Denmark|
62
- DMDMA212Dominica|Commonwealth of Dominica|
63
- DODOM214Dominican Republic
64
- DZDZA012Algeria|People's Democratic Republic of Algeria|
65
- ECECU218Ecuador|Republic of Ecuador|
66
- EEEST233Estonia|Republic of Estonia|
67
- EGEGY818Egypt|Arab Republic of Egypt|
68
- EHESH732Western Sahara
69
- ERERI232Eritrea|the State of Eritrea|
70
- ESESP724Spain|Kingdom of Spain|
71
- ETETH231Ethiopia|Federal Democratic Republic of Ethiopia|
72
- FIFIN246Finland|Republic of Finland|
73
- FJFJI242Fiji|Republic of Fiji|
74
- FKFLK238Falkland Islands (Malvinas)
75
- FMFSM583Micronesia, Federated States of|Federated States of Micronesia|
76
- FOFRO234Faroe Islands
77
- FRFRA250France|French Republic|
78
- GAGAB266Gabon|Gabonese Republic|
79
- GBGBR826United Kingdom|United Kingdom of Great Britain and Northern Ireland|
80
- GDGRD308Grenada
81
- GEGEO268Georgia
82
- GFGUF254French Guiana
83
- GGGGY831Guernsey
84
- GHGHA288Ghana|Republic of Ghana|
85
- GIGIB292Gibraltar
86
- GLGRL304Greenland
87
- GMGMB270Gambia|Republic of the Gambia|
88
- GNGIN324Guinea|Republic of Guinea|
89
- GPGLP312Guadeloupe
90
- GQGNQ226Equatorial Guinea|Republic of Equatorial Guinea|
91
- GRGRC300Greece|Hellenic Republic|
92
- GSSGS239South Georgia and the South Sandwich Islands
93
- GTGTM320Guatemala|Republic of Guatemala|
94
- GUGUM316Guam
95
- GWGNB624Guinea-Bissau|Republic of Guinea-Bissau|
96
- GYGUY328Guyana|Republic of Guyana|
97
- HKHKG344Hong Kong|Hong Kong Special Administrative Region of China|
98
- HMHMD334Heard Island and McDonald Islands
99
- HNHND340Honduras|Republic of Honduras|
100
- HRHRV191Croatia|Republic of Croatia|
101
- HTHTI332Haiti|Republic of Haiti|
102
- HUHUN348Hungary|Hungary|
103
- IDIDN360Indonesia|Republic of Indonesia|
104
- IEIRL372Ireland
105
- ILISR376Israel|State of Israel|
106
- IMIMN833Isle of Man
107
- ININD356India|Republic of India|
108
- IOIOT086British Indian Ocean Territory
109
- IQIRQ368Iraq|Republic of Iraq|
110
- IRIRN364Iran, Islamic Republic of|Islamic Republic of Iran|Iran
111
- ISISL352Iceland|Republic of Iceland|
112
- ITITA380Italy|Italian Republic|
113
- JEJEY832Jersey
114
- JMJAM388Jamaica
115
- JOJOR400Jordan|Hashemite Kingdom of Jordan|
116
- JPJPN392Japan
117
- KEKEN404Kenya|Republic of Kenya|
118
- KGKGZ417Kyrgyzstan|Kyrgyz Republic|
119
- KHKHM116Cambodia|Kingdom of Cambodia|
120
- KIKIR296Kiribati|Republic of Kiribati|
121
- KMCOM174Comoros|Union of the Comoros|
122
- KNKNA659Saint Kitts and Nevis
123
- KPPRK408Korea, Democratic People's Republic of|Democratic People's Republic of Korea|North Korea
124
- KRKOR410Korea, Republic of||South Korea
125
- KWKWT414Kuwait|State of Kuwait|
126
- KYCYM136Cayman Islands
127
- KZKAZ398Kazakhstan|Republic of Kazakhstan|
128
- LALAO418Lao People's Democratic Republic||Laos
129
- LBLBN422Lebanon|Lebanese Republic|
130
- LCLCA662Saint Lucia
131
- LILIE438Liechtenstein|Principality of Liechtenstein|
132
- LKLKA144Sri Lanka|Democratic Socialist Republic of Sri Lanka|
133
- LRLBR430Liberia|Republic of Liberia|
134
- LSLSO426Lesotho|Kingdom of Lesotho|
135
- LTLTU440Lithuania|Republic of Lithuania|
136
- LULUX442Luxembourg|Grand Duchy of Luxembourg|
137
- LVLVA428Latvia|Republic of Latvia|
138
- LYLBY434Libya|Libya|
139
- MAMAR504Morocco|Kingdom of Morocco|
140
- MCMCO492Monaco|Principality of Monaco|
141
- MDMDA498Moldova, Republic of|Republic of Moldova|Moldova
142
- MEMNE499Montenegro|Montenegro|
143
- MFMAF663Saint Martin (French part)
144
- MGMDG450Madagascar|Republic of Madagascar|
145
- MHMHL584Marshall Islands|Republic of the Marshall Islands|
146
- MKMKD807North Macedonia|Republic of North Macedonia|
147
- MLMLI466Mali|Republic of Mali|
148
- MMMMR104Myanmar|Republic of Myanmar|
149
- MNMNG496Mongolia
150
- MOMAC446Macao|Macao Special Administrative Region of China|
151
- MPMNP580Northern Mariana Islands|Commonwealth of the Northern Mariana Islands|
152
- MQMTQ474Martinique
153
- MRMRT478Mauritania|Islamic Republic of Mauritania|
154
- MSMSR500Montserrat
155
- MTMLT470Malta|Republic of Malta|
156
- MUMUS480Mauritius|Republic of Mauritius|
157
- MVMDV462Maldives|Republic of Maldives|
158
- MWMWI454Malawi|Republic of Malawi|
159
- MXMEX484Mexico|United Mexican States|
160
- MYMYS458Malaysia
161
- MZMOZ508Mozambique|Republic of Mozambique|
162
- NANAM516Namibia|Republic of Namibia|
163
- NCNCL540New Caledonia
164
- NENER562Niger|Republic of the Niger|
165
- NFNFK574Norfolk Island
166
- NGNGA566Nigeria|Federal Republic of Nigeria|
167
- NINIC558Nicaragua|Republic of Nicaragua|
168
- NLNLD528Netherlands|Kingdom of the Netherlands|
169
- NONOR578Norway|Kingdom of Norway|
170
- NPNPL524Nepal|Federal Democratic Republic of Nepal|
171
- NRNRU520Nauru|Republic of Nauru|
172
- NUNIU570Niue|Niue|
173
- NZNZL554New Zealand
174
- OMOMN512Oman|Sultanate of Oman|
175
- PAPAN591Panama|Republic of Panama|
176
- PEPER604Peru|Republic of Peru|
177
- PFPYF258French Polynesia
178
- PGPNG598Papua New Guinea|Independent State of Papua New Guinea|
179
- PHPHL608Philippines|Republic of the Philippines|
180
- PKPAK586Pakistan|Islamic Republic of Pakistan|
181
- PLPOL616Poland|Republic of Poland|
182
- PMSPM666Saint Pierre and Miquelon
183
- PNPCN612Pitcairn
184
- PRPRI630Puerto Rico
185
- PSPSE275Palestine, State of|the State of Palestine|
186
- PTPRT620Portugal|Portuguese Republic|
187
- PWPLW585Palau|Republic of Palau|
188
- PYPRY600Paraguay|Republic of Paraguay|
189
- QAQAT634Qatar|State of Qatar|
190
- REREU638Réunion
191
- ROROU642Romania
192
- RSSRB688Serbia|Republic of Serbia|
193
- RURUS643Russian Federation
194
- RWRWA646Rwanda|Rwandese Republic|
195
- SASAU682Saudi Arabia|Kingdom of Saudi Arabia|
196
- SBSLB090Solomon Islands
197
- SCSYC690Seychelles|Republic of Seychelles|
198
- SDSDN729Sudan|Republic of the Sudan|
199
- SESWE752Sweden|Kingdom of Sweden|
200
- SGSGP702Singapore|Republic of Singapore|
201
- SHSHN654Saint Helena, Ascension and Tristan da Cunha
202
- SISVN705Slovenia|Republic of Slovenia|
203
- SJSJM744Svalbard and Jan Mayen
204
- SKSVK703Slovakia|Slovak Republic|
205
- SLSLE694Sierra Leone|Republic of Sierra Leone|
206
- SMSMR674San Marino|Republic of San Marino|
207
- SNSEN686Senegal|Republic of Senegal|
208
- SOSOM706Somalia|Federal Republic of Somalia|
209
- SRSUR740Suriname|Republic of Suriname|
210
- SSSSD728South Sudan|Republic of South Sudan|
211
- STSTP678Sao Tome and Principe|Democratic Republic of Sao Tome and Principe|
212
- SVSLV222El Salvador|Republic of El Salvador|
213
- SXSXM534Sint Maarten (Dutch part)|Sint Maarten (Dutch part)|
214
- SYSYR760Syrian Arab Republic||Syria
215
- SZSWZ748Eswatini|Kingdom of Eswatini|
216
- TCTCA796Turks and Caicos Islands
217
- TDTCD148Chad|Republic of Chad|
218
- TFATF260French Southern Territories
219
- TGTGO768Togo|Togolese Republic|
220
- THTHA764Thailand|Kingdom of Thailand|
221
- TJTJK762Tajikistan|Republic of Tajikistan|
222
- TKTKL772Tokelau
223
- TLTLS626Timor-Leste|Democratic Republic of Timor-Leste|
224
- TMTKM795Turkmenistan
225
- TNTUN788Tunisia|Republic of Tunisia|
226
- TOTON776Tonga|Kingdom of Tonga|
227
- TRTUR792Türkiye|Republic of Türkiye|
228
- TTTTO780Trinidad and Tobago|Republic of Trinidad and Tobago|
229
- TVTUV798Tuvalu
230
- TWTWN158Taiwan, Province of China|Taiwan, Province of China|Taiwan
231
- TZTZA834Tanzania, United Republic of|United Republic of Tanzania|Tanzania
232
- UAUKR804Ukraine
233
- UGUGA800Uganda|Republic of Uganda|
234
- UMUMI581United States Minor Outlying Islands
235
- USUSA840United States|United States of America|
236
- UYURY858Uruguay|Eastern Republic of Uruguay|
237
- UZUZB860Uzbekistan|Republic of Uzbekistan|
238
- VAVAT336Holy See (Vatican City State)
239
- VCVCT670Saint Vincent and the Grenadines
240
- VEVEN862Venezuela, Bolivarian Republic of|Bolivarian Republic of Venezuela|Venezuela
241
- VGVGB092Virgin Islands, British|British Virgin Islands|
242
- VIVIR850Virgin Islands, U.S.|Virgin Islands of the United States|
243
- VNVNM704Viet Nam|Socialist Republic of Viet Nam|Vietnam
244
- VUVUT548Vanuatu|Republic of Vanuatu|
245
- WFWLF876Wallis and Futuna
246
- WSWSM882Samoa|Independent State of Samoa|
247
- YEYEM887Yemen|Republic of Yemen|
248
- YTMYT175Mayotte
249
- ZAZAF710South Africa|Republic of South Africa|
250
- ZMZMB894Zambia|Republic of Zambia|
251
- ZWZWE716Zimbabwe|Republic of Zimbabwe|
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");
@@ -1 +1 @@
1
- {"version":3,"file":"countries.js","sourceRoot":"","sources":["../src/countries.ts"],"names":[],"mappings":"AAAA,yFAAyF;AAEzF,MAAM,CAAC,MAAM,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0PxB;KACE,IAAI,EAAE;KACN,KAAK,CAAC,IAAI,CAAC,CAAC"}
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. */
@@ -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;AAqFtE,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"}
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 TAIL = new Set([...FORMS, ...TAILS, ""]);
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.length > 1 &&
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 first = handle.split(/\s+/)[0] ?? "";
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()) {