cloud-regions-country-flags
Advanced tools
Comparing version 0.0.11 to 0.0.12
169
index.js
@@ -1395,2 +1395,171 @@ exports.getInfo = function (region, provider) { | ||
} | ||
} else if (provider === 'Vercel') { | ||
switch (region) { | ||
case 'arn1': | ||
obj.location = 'Stockholm, Sweden'; | ||
obj.flag = '๐ธ๐ช'; | ||
obj.country = 'Sweden'; | ||
obj.latitude = 59.327242540704844; | ||
obj.longitude = 18.11112249873855; | ||
bj.provider_region = 'AWS eu-north-1'; | ||
break; | ||
case 'bom1': | ||
obj.location = 'Mumbai, India'; | ||
obj.flag = '๐ฎ๐ณ'; | ||
obj.country = 'India'; | ||
obj.latitude = 19.089335747980407; | ||
obj.longitude = 72.87499665008126; | ||
obj.provider_region = 'AWS ap-south-1'; | ||
break; | ||
case 'cdg1': | ||
obj.location = 'Paris, France'; | ||
obj.flag = '๐ซ๐ท'; | ||
obj.country = 'France'; | ||
obj.latitude = 48.85741471753412; | ||
obj.longitude = 2.3518349371822955; | ||
obj.provider_region = 'AWS eu-west-3'; | ||
break; | ||
case 'cle1': | ||
obj.location = 'Cleveland, USA'; | ||
obj.flag = '๐บ๐ธ'; | ||
obj.country = 'United States of America'; | ||
obj.latitude = 41.496163440719926; | ||
obj.longitude = -81.70863660127067; | ||
obj.provider_region = 'AWS us-east-2'; | ||
break; | ||
case 'cpt1': | ||
obj.location = 'Cape Town, South Africa'; | ||
obj.flag = '๐ฟ๐ฆ'; | ||
obj.country = 'South Africa'; | ||
obj.latitude = -33.921106544286005; | ||
obj.longitude = 18.51035508186518; | ||
obj.provider_region = 'AWS af-south-1'; | ||
break; | ||
case 'dub1': | ||
obj.location = 'Dublin, Ireland'; | ||
obj.flag = '๐ฎ๐ช'; | ||
obj.country = 'Ireland'; | ||
obj.latitude = 53.35105167936143; | ||
obj.longitude = -6.251220485569604; | ||
obj.provider_region = 'AWS eu-west-1'; | ||
break; | ||
case 'fra1': | ||
obj.location = 'Frankfurt, Germany'; | ||
obj.flag = '๐ฉ๐ช'; | ||
obj.country = 'Germany'; | ||
obj.latitude = 50.11118831656038; | ||
obj.longitude = 8.666751016361793; | ||
obj.provider_region = 'AWS eu-central-1'; | ||
break; | ||
case 'gru1': | ||
obj.location = 'Sรฃo Paulo, Brazil'; | ||
obj.flag = '๐ง๐ท'; | ||
obj.country = 'Brazil'; | ||
obj.latitude = -23.566406063241345; | ||
obj.longitude = -46.625549380125584; | ||
obj.provider_region = 'AWS sa-east-1'; | ||
break; | ||
case 'hkg1': | ||
obj.location = 'Hong Kong'; | ||
obj.flag = '๐ญ๐ฐ'; | ||
obj.country = 'China'; | ||
obj.latitude = 22.32985973692592; | ||
obj.longitude = 114.19636455155445; | ||
obj.provider_region = 'AWS ap-east-1'; | ||
break; | ||
case 'hnd1': | ||
obj.location = 'Tokyo, Japan'; | ||
obj.flag = '๐ฏ๐ต'; | ||
obj.country = 'Japan'; | ||
obj.latitude = 35.97007155099243; | ||
obj.longitude = 139.86657538201666; | ||
obj.provider_region = 'AWS ap-northeast-1'; | ||
break; | ||
case 'iad1': | ||
obj.location = 'Washington, D.C., USA'; | ||
obj.flag = '๐บ๐ธ'; | ||
obj.country = 'United States of America'; | ||
obj.latitude = 38.90711384699596; | ||
obj.longitude = -77.02350239105644; | ||
obj.provider_region = 'AWS us-east-1'; | ||
break; | ||
case 'icn1': | ||
obj.location = 'Seoul, South Korea'; | ||
obj.flag = '๐ฐ๐ท'; | ||
obj.country = 'South Korea'; | ||
obj.latitude = 0; | ||
obj.longitude = 0; | ||
obj.provider_region = 'AWS ap-northeast-2'; | ||
break; | ||
case 'kix1': | ||
obj.location = 'Osaka, Japan'; | ||
obj.flag = '๐ฏ๐ต'; | ||
obj.country = 'Japan'; | ||
obj.latitude = 37.5559046093387; | ||
obj.longitude = 126.99740017741334; | ||
obj.provider_region = 'AWS ap-northeast-3'; | ||
break; | ||
case 'lhr1': | ||
obj.location = 'London, United Kingdom'; | ||
obj.flag = '๐ฌ๐ง'; | ||
obj.country = 'England'; | ||
obj.latitude = 51.52489041122748; | ||
obj.longitude = -0.13046209371870243; | ||
obj.provider_region = 'AWS eu-west-2'; | ||
break; | ||
case 'pdx1': | ||
obj.location = 'Portland, USA'; | ||
obj.flag = '๐บ๐ธ'; | ||
obj.country = ' United States of America'; | ||
obj.latitude = 45.52216947634798; | ||
obj.longitude = -122.67777490574689; | ||
obj.provider_region = 'AWS us-west-2'; | ||
break; | ||
case 'sfo1': | ||
obj.location = 'San Francisco, USA'; | ||
obj.flag = '๐บ๐ธ'; | ||
obj.country = 'United States of America'; | ||
obj.latitude = 37.77281582759221; | ||
obj.longitude = -122.39022946891012; | ||
obj.provider_region = 'AWS us-west-1'; | ||
break; | ||
case 'sin1': | ||
obj.location = 'Singapore'; | ||
obj.flag = '๐ธ๐ฌ'; | ||
obj.country = 'Singapore'; | ||
obj.latitude = 1.3510531723014314; | ||
obj.longitude = 103.87991388897552; | ||
obj.provider_region = 'AWS ap-southeast-1'; | ||
break; | ||
case 'syd1': | ||
obj.location = 'Sydney, Australia'; | ||
obj.flag = '๐ฆ๐บ'; | ||
obj.country = 'Australia'; | ||
obj.latitude = -33.8652229494752; | ||
obj.longitude = 151.25868241093193; | ||
obj.provider_region = 'AWS ap-southeast-2'; | ||
break; | ||
default: | ||
obj.location = 'Vercel'; | ||
obj.flag = 'โ ๏ธ'; | ||
break; | ||
} | ||
} else { | ||
@@ -1397,0 +1566,0 @@ switch (region) { |
{ | ||
"name": "cloud-regions-country-flags", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "A library to convert cloud provider regions to country flag emojis", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -43,10 +43,15 @@ # cloud-regions-country-flags | ||
| Name | Type | Required | Description | | ||
| -------- | ----------------- | -------- | ---------------------- | | ||
| region | string | true | name of cloud region | | ||
| provider | string AWS or GCP | true | name of cloud provider | | ||
| Name | Type | Required | Description | | ||
| ---------- | ------------------ | -------- | ---------------- | | ||
| `region` | string | `true` | code of region | | ||
| `provider` | AWS / GCP / Vercel | `true` | name of provider | | ||
## Help | ||
## Region Information | ||
- [AWS Regions](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html) | ||
- [GCP Regions and zones](https://cloud.google.com/compute/docs/regions-zones) | ||
- [Vercel Region List](https://vercel.com/docs/concepts/edge-network/regions#routing) | ||
### Bugs | ||
There has been a lot of copy and pasting of values from various sources to create this utility. If you spot anything that is incorrect please open an [issue](https://github.com/PaulieScanlon/cloud-regions-country-flags/issues) or [PR](https://github.com/PaulieScanlon/cloud-regions-country-flags/pulls). Thanks in advance! |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52068
1380
57