Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More โ†’
Socket
Sign inDemoInstall
Socket

cloud-regions-country-flags

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloud-regions-country-flags - npm Package Compare versions

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 @@

2

package.json
{
"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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc