cloud-regions-country-flags
Advanced tools
Comparing version 0.0.2 to 0.0.3
708
index.js
@@ -1,33 +0,703 @@ | ||
exports.getInfo = function (region, { provider = 'AWS' }) { | ||
exports.getInfo = function (region, provider) { | ||
let obj = { | ||
country: '', | ||
state: '', | ||
location: '', | ||
flag: '', | ||
}; | ||
if (!provider || provider !== 'AWS') { | ||
if (!provider) { | ||
// AWS | ||
switch (region) { | ||
case 'eu-west': | ||
obj.country = 'Ireland'; | ||
case 'us-east-2': | ||
obj.location = 'US East (Ohio)'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-east-1': | ||
obj.location = 'US East (N. Virginia)'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-west-1': | ||
obj.location = 'US West (N. California)'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'af-south-1': | ||
obj.location = 'US West (Oregon)'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'af-south-1': | ||
obj.location = 'Africa (Cape Town)'; | ||
obj.flag = '๐ฟ๐ฆ'; | ||
break; | ||
case 'ap-east-1': | ||
obj.location = 'Asia Pacific (Hong Kong)'; | ||
obj.flag = '๐จ๐ณ'; | ||
break; | ||
case 'ap-south-2': | ||
obj.location = 'Asia Pacific (Hyderabad)'; | ||
obj.flag = '๐ฎ๐ณ'; | ||
break; | ||
case 'ap-southeast-3': | ||
obj.location = 'Asia Pacific (Jakarta)'; | ||
obj.flag = '๐ฎ๐ฉ'; | ||
break; | ||
case 'ap-southeast-4': | ||
obj.location = 'Asia Pacific (Melbourne)'; | ||
obj.flag = '๐ฆ๐บ'; | ||
break; | ||
case 'ap-south-1': | ||
obj.location = 'Asia Pacific (Mumbai)'; | ||
obj.flag = '๐ฎ๐ณ'; | ||
break; | ||
case 'ap-northeast-3': | ||
obj.location = 'Asia Pacific (Osaka)'; | ||
obj.flag = '๐ฏ๐ต'; | ||
break; | ||
case 'ap-northeast-2': | ||
obj.location = 'Asia Pacific (Seoul'; | ||
obj.flag = '๐ฐ๐ท'; | ||
break; | ||
case 'ap-southeast-1': | ||
obj.location = 'Asia Pacific (Singapore)'; | ||
obj.flag = '๐ธ๐ฌ'; | ||
break; | ||
case 'ap-southeast-2': | ||
obj.location = 'Asia Pacific (Sydney)'; | ||
obj.flag = '๐ฆ๐บ'; | ||
break; | ||
case 'ap-northeast-1': | ||
obj.location = 'Asia Pacific (Tokyo)'; | ||
obj.flag = '๐ฏ๐ต'; | ||
break; | ||
case 'ca-central-1': | ||
obj.location = 'Canada (Central)'; | ||
obj.flag = '๐จ๐ฆ'; | ||
break; | ||
case 'eu-central-1': | ||
obj.location = 'Europe (Frankfurt)'; | ||
obj.flag = '๐ฉ๐ช'; | ||
break; | ||
case 'eu-west-1': | ||
obj.location = 'Europe (Ireland)'; | ||
obj.flag = '๐ฎ๐ช'; | ||
break; | ||
case 'eu-west-2': | ||
obj.location = 'Europe (London)'; | ||
obj.flag = '๐ฌ๐ง'; | ||
break; | ||
case 'eu-south-1': | ||
obj.location = 'Europe (Milan)'; | ||
obj.flag = '๐ฎ๐น'; | ||
break; | ||
case 'eu-west-3': | ||
obj.location = 'Europe (Paris)'; | ||
obj.flag = '๐ซ๐ท'; | ||
break; | ||
case 'eu-south-2': | ||
obj.location = 'Europe (Spain)'; | ||
obj.flag = '๐ช๐ธ'; | ||
break; | ||
case 'eu-north-1': | ||
obj.location = 'Europe (Stockholm)'; | ||
obj.flag = '๐ธ๐ช'; | ||
break; | ||
case 'eu-central-2': | ||
obj.location = 'Europe (Zurich'; | ||
obj.flag = '๐จ๐ญ'; | ||
break; | ||
case 'me-south-1': | ||
obj.location = 'Middle East (Bahrain)'; | ||
obj.flag = '๐ง๐ญ'; | ||
break; | ||
case 'me-central-1': | ||
obj.location = 'Middle East (UAE)'; | ||
obj.flag = '๐ฆ๐ช'; | ||
break; | ||
case 'sa-east-1': | ||
obj.location = 'South America (Sรฃo Paulo)'; | ||
obj.flag = '๐ง๐ท'; | ||
break; | ||
case 'us-gov-east-1': | ||
obj.location = 'AWS GovCloud (US-East'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-gov-west-1': | ||
obj.location = 'AWS GovCloud (US-West)'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
default: | ||
obj.country = 'Poop'; | ||
obj.flag = '๐ฉ'; | ||
obj.location = 'AWS'; | ||
obj.flag = 'โ ๏ธ'; | ||
break; | ||
} | ||
} | ||
} else { | ||
// GCP | ||
switch (region) { | ||
case 'asia-east1-a': | ||
obj.location = 'Changhua County, Taiwan, APAC'; | ||
obj.flag = '๐น๐ผ'; | ||
break; | ||
switch (region) { | ||
case 'us-west2': | ||
obj.country = 'US'; | ||
obj.state = 'California'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'asia-east1-b': | ||
obj.location = 'Changhua County, Taiwan, APAC'; | ||
obj.flag = '๐น๐ผ'; | ||
break; | ||
default: | ||
obj.country = 'Poop'; | ||
obj.flag = '๐ฉ'; | ||
break; | ||
case 'asia-east1-c': | ||
obj.location = 'Changhua County, Taiwan, APAC'; | ||
obj.flag = '๐น๐ผ'; | ||
break; | ||
case 'asia-east2-a': | ||
obj.location = 'Hong Kong, APAC'; | ||
obj.flag = '๐จ๐ณ'; | ||
break; | ||
case 'asia-east2-b': | ||
obj.location = 'Hong Kong, APAC'; | ||
obj.flag = '๐จ๐ณ'; | ||
break; | ||
case 'asia-east2-c': | ||
obj.location = 'Hong Kong, APAC'; | ||
obj.flag = '๐จ๐ณ'; | ||
break; | ||
case 'asia-northeast1-a': | ||
obj.location = 'Tokyo, Japan, APAC'; | ||
obj.flag = '๐ฏ๐ต'; | ||
break; | ||
case 'asia-northeast1-b': | ||
obj.location = 'Tokyo, Japan, APAC'; | ||
obj.flag = '๐ฏ๐ต'; | ||
break; | ||
case 'asia-northeast1-c': | ||
obj.location = 'Tokyo, Japan, APAC'; | ||
obj.flag = '๐ฏ๐ต'; | ||
break; | ||
case 'asia-northeast2-a': | ||
obj.location = 'Osaka, Japan, APAC'; | ||
obj.flag = '๐ฏ๐ต'; | ||
break; | ||
case 'asia-northeast2-b': | ||
obj.location = ' Osaka, Japan, APAC'; | ||
obj.flag = '๐ฏ๐ต'; | ||
break; | ||
case 'asia-northeast2-c': | ||
obj.location = 'Osaka, Japan, APAC'; | ||
obj.flag = '๐ฏ๐ต'; | ||
break; | ||
case 'asia-northeast3-a': | ||
obj.location = 'Seoul, South Korea, APAC'; | ||
obj.flag = '๐ฐ๐ท'; | ||
break; | ||
case 'asia-northeast3-b': | ||
obj.location = 'Seoul, South Korea, APAC'; | ||
obj.flag = '๐ฐ๐ท'; | ||
break; | ||
case 'asia-northeast3-c': | ||
obj.location = 'Seoul, South Korea, APAC'; | ||
obj.flag = '๐ฐ๐ท'; | ||
break; | ||
case 'asia-south1-a': | ||
obj.location = 'Mumbai, India APAC'; | ||
obj.flag = '๐ฎ๐ณ'; | ||
break; | ||
case 'asia-south1-b': | ||
obj.location = 'Mumbai, India APAC'; | ||
obj.flag = '๐ฎ๐ณ'; | ||
break; | ||
case 'asia-south1-c': | ||
obj.location = 'Mumbai, India APAC'; | ||
obj.flag = '๐ฎ๐ณ'; | ||
break; | ||
case 'asia-south2-a': | ||
obj.location = 'Delhi, India APAC'; | ||
obj.flag = '๐ฎ๐ณ'; | ||
break; | ||
case 'asia-south2-b': | ||
obj.location = 'Delhi, India APAC'; | ||
obj.flag = '๐ฎ๐ณ'; | ||
break; | ||
case 'asia-south2-c': | ||
obj.location = 'Delhi, India APAC'; | ||
obj.flag = '๐ฎ๐ณ'; | ||
break; | ||
case 'asia-southeast1-a': | ||
obj.location = 'Jurong West, Singapore, APAC'; | ||
obj.flag = '๐ธ๐ฌ'; | ||
break; | ||
case 'asia-southeast1-b': | ||
obj.location = 'Jurong West, Singapore, APAC'; | ||
obj.flag = '๐ธ๐ฌ'; | ||
break; | ||
case 'asia-southeast1-c': | ||
obj.location = 'southeast1-c Jurong West, Singapore, APAC'; | ||
obj.flag = '๐ธ๐ฌ'; | ||
break; | ||
case 'asia-southeast2-a': | ||
obj.location = 'Jakarta, Indonesia, APAC'; | ||
obj.flag = '๐ฎ๐ฉ'; | ||
break; | ||
case 'asia-southeast2-b': | ||
obj.location = 'Jakarta, Indonesia, APA'; | ||
obj.flag = '๐ฎ๐ฉ'; | ||
break; | ||
case 'asia-southeast2-c': | ||
obj.location = 'Jakarta, Indonesia, APAC'; | ||
obj.flag = '๐ฎ๐ฉ'; | ||
break; | ||
case 'australia-southeast1-a': | ||
obj.location = 'Sydney, Australia, APAC'; | ||
obj.flag = '๐ฆ๐บ'; | ||
break; | ||
case 'australia-southeast1-b': | ||
obj.location = 'Sydney, Australia, APAC'; | ||
obj.flag = '๐ฆ๐บ'; | ||
break; | ||
case 'australia-southeast1-c': | ||
obj.location = 'Sydney, Australia, APAC'; | ||
obj.flag = '๐ฆ๐บ'; | ||
break; | ||
case 'australia-southeast2-a': | ||
obj.location = 'Melbourne, Australia, APAC'; | ||
obj.flag = '๐ฆ๐บ'; | ||
break; | ||
case 'australia-southeast2-b': | ||
obj.location = 'Melbourne, Australia, APAC'; | ||
obj.flag = '๐ฆ๐บ'; | ||
break; | ||
case 'australia-southeast2-c': | ||
obj.location = 'Melbourne, Australia, APAC'; | ||
obj.flag = '๐ฆ๐บ'; | ||
break; | ||
case 'europe-central2-a': | ||
obj.location = 'Warsaw, Poland, Europe'; | ||
obj.flag = '๐ต๐ฑ'; | ||
break; | ||
case 'europe-central2-b': | ||
obj.location = 'Warsaw, Poland, Europe'; | ||
obj.flag = '๐ต๐ฑ'; | ||
break; | ||
case 'europe-central2-c': | ||
obj.location = 'Warsaw, Poland, Europe'; | ||
obj.flag = '๐ต๐ฑ'; | ||
break; | ||
case 'europe-north1-a': | ||
obj.location = 'Hamina, Finland, Europe'; | ||
obj.flag = '๐ซ๐ฎ'; | ||
break; | ||
case 'europe-north1-b': | ||
obj.location = 'Hamina, Finland, Europe'; | ||
obj.flag = '๐ซ๐ฎ'; | ||
break; | ||
case 'europe-north1-c': | ||
obj.location = 'Hamina, Finland, Europe'; | ||
obj.flag = '๐ซ๐ฎ'; | ||
break; | ||
case 'europe-southwest1-a': | ||
obj.location = 'Madrid, Spain, Europe'; | ||
obj.flag = '๐ช๐ธ'; | ||
break; | ||
case 'europe-southwest1-b': | ||
obj.location = 'Madrid, Spain, Europe'; | ||
obj.flag = '๐ช๐ธ'; | ||
break; | ||
case 'europe-southwest1-c': | ||
obj.location = 'Madrid, Spain, Europe'; | ||
obj.flag = '๐ช๐ธ'; | ||
break; | ||
case 'europe-west1-b': | ||
obj.location = 'St. Ghislain, Belgium, Europe'; | ||
obj.flag = '๐ง๐ช'; | ||
break; | ||
case 'europe-west1-c': | ||
obj.location = 'St. Ghislain, Belgium, Europ'; | ||
obj.flag = '๐ง๐ช'; | ||
break; | ||
case 'europe-west1-d': | ||
obj.location = 'St. Ghislain, Belgium, Europe'; | ||
obj.flag = '๐ง๐ช'; | ||
break; | ||
case 'europe-west2-a': | ||
obj.location = 'London, England, Europe'; | ||
obj.flag = '๐ฌ๐ง'; | ||
break; | ||
case 'europe-west2-b': | ||
obj.location = 'London, England, Europe'; | ||
obj.flag = '๐ฌ๐ง'; | ||
break; | ||
case 'europe-west2-c': | ||
obj.location = 'London, England, Europe'; | ||
obj.flag = '๐ฌ๐ง'; | ||
break; | ||
case 'europe-west3-a': | ||
obj.location = 'Frankfurt, Germany Europe'; | ||
obj.flag = '๐ฉ๐ช'; | ||
break; | ||
case 'europe-west3-b': | ||
obj.location = 'Frankfurt, Germany Europe'; | ||
obj.flag = '๐ฉ๐ช'; | ||
break; | ||
case 'europe-west3-c': | ||
obj.location = 'Frankfurt, Germany Europe'; | ||
obj.flag = '๐ฉ๐ช'; | ||
break; | ||
case 'europe-west4-a': | ||
obj.location = 'Eemshaven, Netherlands, Europe'; | ||
obj.flag = '๐ณ๐ฑ'; | ||
break; | ||
case 'europe-west4-b': | ||
obj.location = 'Eemshaven, Netherlands, Europe'; | ||
obj.flag = '๐ณ๐ฑ'; | ||
break; | ||
case 'europe-west4-c': | ||
obj.location = 'Eemshaven, Netherlands, Europe'; | ||
obj.flag = '๐ณ๐ฑ'; | ||
break; | ||
case 'europe-west6-a': | ||
obj.location = 'Zurich, Switzerland, Europe'; | ||
obj.flag = '๐จ๐ญ'; | ||
break; | ||
case 'europe-west6-b': | ||
obj.location = 'Zurich, Switzerland, Europe'; | ||
obj.flag = '๐จ๐ญ'; | ||
break; | ||
case 'europe-west6-c': | ||
obj.location = 'Zurich, Switzerland, Europe'; | ||
obj.flag = '๐จ๐ญ'; | ||
break; | ||
case 'europe-west8-a': | ||
obj.location = 'Milan, Italy, Europe'; | ||
obj.flag = '๐ฎ๐น'; | ||
break; | ||
case 'europe-west8-b': | ||
obj.location = 'Milan, Italy, Europ'; | ||
obj.flag = '๐ฎ๐น'; | ||
break; | ||
case 'europe-west8-c': | ||
obj.location = 'Milan, Italy, Europe'; | ||
obj.flag = '๐ฎ๐น'; | ||
break; | ||
case 'europe-west9-a': | ||
obj.location = 'Paris, France, Europe'; | ||
obj.flag = '๐ซ๐ท'; | ||
break; | ||
case 'europe-west9-b': | ||
obj.location = 'Paris, France, Europe'; | ||
obj.flag = '๐ซ๐ท'; | ||
break; | ||
case 'europe-west9-c': | ||
obj.location = 'Paris, France, Europe'; | ||
obj.flag = '๐ซ๐ท'; | ||
break; | ||
case 'me-west1-a': | ||
obj.location = 'Tel Aviv, Israel, Middle East'; | ||
obj.flag = '๐ฎ๐ฑ'; | ||
break; | ||
case 'me-west1-b': | ||
obj.location = 'Tel Aviv, Israel, Middle East'; | ||
obj.flag = '๐ฎ๐ฑ'; | ||
break; | ||
case 'me-west1-c': | ||
obj.location = 'Tel Aviv, Israel, Middle East'; | ||
obj.flag = '๐ฎ๐ฑ'; | ||
break; | ||
case 'northamerica-northeast1-a': | ||
obj.location = 'Montrรฉal, Quรฉbec, North America'; | ||
obj.flag = '๐จ๐ฆ'; | ||
break; | ||
case 'northamerica-northeast1-b': | ||
obj.location = 'Montrรฉal, Quรฉbec, North America'; | ||
obj.flag = '๐จ๐ฆ'; | ||
break; | ||
case 'northamerica-northeast1-c': | ||
obj.location = 'Montrรฉal, Quรฉbec, North America'; | ||
obj.flag = '๐จ๐ฆ'; | ||
break; | ||
case 'northamerica-northeast2-a': | ||
obj.location = 'Toronto, Ontario, North America'; | ||
obj.flag = '๐จ๐ฆ'; | ||
break; | ||
case 'northamerica-northeast2-b': | ||
obj.location = 'Toronto, Ontario, North America'; | ||
obj.flag = '๐จ๐ฆ'; | ||
break; | ||
case 'northamerica-northeast2-b': | ||
obj.location = 'Toronto, Ontario, North America'; | ||
obj.flag = '๐จ๐ฆ'; | ||
break; | ||
case 'northamerica-northeast2-c': | ||
obj.location = 'Toronto, Ontario, North America'; | ||
obj.flag = '๐จ๐ฆ'; | ||
break; | ||
case 'southamerica-east1-a': | ||
obj.location = 'Osasco, Sรฃo Paulo, Brazil, South America'; | ||
obj.flag = '๐ง๐ท'; | ||
break; | ||
case 'southamerica-east1-b': | ||
obj.location = 'Osasco, Sรฃo Paulo, Brazil, South America'; | ||
obj.flag = '๐ง๐ท'; | ||
break; | ||
case 'southamerica-east1-c': | ||
obj.location = 'Osasco, Sรฃo Paulo, Brazil, South America'; | ||
obj.flag = '๐ง๐ท'; | ||
break; | ||
case 'southamerica-west1-a': | ||
obj.location = 'Santiago, Chile, South America'; | ||
obj.flag = '๐จ๐ฑ'; | ||
break; | ||
case 'southamerica-west1-b': | ||
obj.location = 'Santiago, Chile, South America'; | ||
obj.flag = '๐จ๐ฑ'; | ||
break; | ||
case 'southamerica-west1-c': | ||
obj.location = 'Santiago, Chile, South America'; | ||
obj.flag = '๐จ๐ฑ'; | ||
break; | ||
case 'us-central1-a': | ||
obj.location = 'Council Bluffs, Iowa, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-central1-b': | ||
obj.location = 'Council Bluffs, Iowa, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-central1-c': | ||
obj.location = 'Council Bluffs, Iowa, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-central1-f': | ||
obj.location = 'Council Bluffs, Iowa, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-east1-b': | ||
obj.location = 'Moncks Corner, South Carolina, North Americ'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-east1-c': | ||
obj.location = 'Moncks Corner, South Carolina, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-east1-d': | ||
obj.location = 'Moncks Corner, South Carolina, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-east4-a': | ||
obj.location = 'Ashburn, Virginia, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-east4-b': | ||
obj.location = 'Ashburn, Virginia, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-east4-c': | ||
obj.location = 'Ashburn, Virginia, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-east5-a': | ||
obj.location = 'Columbus, Ohio, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-east5-b': | ||
obj.location = 'Columbus, Ohio, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-east5-c': | ||
obj.location = 'Columbus, Ohio, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-south1-a': | ||
obj.location = 'Dallas, Texas, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-south1-b': | ||
obj.location = 'Dallas, Texas, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-south1-c': | ||
obj.location = 'Dallas, Texas, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-west1-a': | ||
obj.location = 'The Dalles, Oregon, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-west1-b': | ||
obj.location = 'The Dalles, Oregon, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-west1-c': | ||
obj.location = 'The Dalles, Oregon, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-west2-a': | ||
obj.location = 'Los Angeles, California, North Americ'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-west2-b': | ||
obj.location = 'Los Angeles, California, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-west2-c': | ||
obj.location = 'Los Angeles, California, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-west3-a': | ||
obj.location = 'Salt Lake City, Utah, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-west3-b': | ||
obj.location = 'Salt Lake City, Utah, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-west3-c': | ||
obj.location = 'Salt Lake City, Utah, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-west4-a': | ||
obj.location = 'Las Vegas, Nevada, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-west4-b': | ||
obj.location = 'Las Vegas, Nevada, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
case 'us-west4-c': | ||
obj.location = 'Las Vegas, Nevada, North America'; | ||
obj.flag = '๐บ๐ธ'; | ||
break; | ||
default: | ||
obj.location = 'GCP'; | ||
obj.flag = 'โ ๏ธ'; | ||
break; | ||
} | ||
} | ||
@@ -34,0 +704,0 @@ |
{ | ||
"name": "cloud-regions-country-flags", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A library to convert cloud provider regions to country flag emojis", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# cloud-regions-country-flags | ||
A library to convert cloud provider regions strings to country name and flag emojis. | ||
A library to convert cloud provider regions strings to locations and emoji flag. | ||
@@ -16,6 +16,6 @@ ## Intall | ||
// Defaults to Amazone Web Services (ASWS) | ||
getInfo('eu-west-1'); | ||
// Defaults to Amazon Web Services (ASWS) | ||
getInfo('eu-north-1'); | ||
// => { country: Ireland, flag: ๐ฎ๐ช } | ||
// => { location: 'Europe (Stockholm)', flag: '๐ธ๐ช' } | ||
``` | ||
@@ -25,2 +25,4 @@ | ||
Pass in Cloud Provider. Currently only accepts 'AWS' or 'GCP' | ||
```javascript | ||
@@ -30,5 +32,9 @@ import { getInfo } from 'cloud-regions-country-flags'; | ||
// Set Cloud Provider to Google Cloud Platofmr (GCP) | ||
getInfo('us-west2', { provider: 'GCP' }); | ||
getInfo('us-west2-a', 'GCP'); | ||
// => { location: 'Los Angeles, California, North Americ', flag: '๐บ๐ธ' } | ||
``` | ||
// => { state: California, flag: ๐บ๐ธ } | ||
``` | ||
## Help | ||
- [AWS 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) |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
20520
568
38
4
1