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.3 to 0.0.4

11

index.js

@@ -7,3 +7,3 @@ exports.getInfo = function (region, provider) {

if (!provider) {
if (provider === 'AWS') {
// AWS

@@ -161,3 +161,3 @@ switch (region) {

}
} else {
} else if (provider === 'GCP') {
// GCP

@@ -705,2 +705,9 @@ switch (region) {

}
} else {
switch (region) {
default:
obj.location = 'Unknown provider';
obj.flag = 'โš ๏ธ';
break;
}
}

@@ -707,0 +714,0 @@

2

package.json
{
"name": "cloud-regions-country-flags",
"version": "0.0.3",
"version": "0.0.4",
"description": "A library to convert cloud provider regions to country flag emojis",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -16,20 +16,18 @@ # cloud-regions-country-flags

// Defaults to Amazon Web Services (ASWS)
getInfo('eu-north-1');
getInfo('eu-north-1', 'AWS');
// => { location: 'Europe (Stockholm)', flag: '๐Ÿ‡ธ๐Ÿ‡ช' }
```
## Options
getInfo('us-west2-a', 'GCP');
Pass in Cloud Provider. Currently only accepts 'AWS' or 'GCP'
```javascript
import { getInfo } from 'cloud-regions-country-flags';
// Set Cloud Provider to Google Cloud Platofmr (GCP)
getInfo('us-west2-a', 'GCP');
// => { location: 'Los Angeles, California, North Americ', flag: '๐Ÿ‡บ๐Ÿ‡ธ' }
```
## Parameters
| Name | Type | Required | Description |
| -------- | ----------------- | -------- | ---------------------- |
| region | string | true | name of cloud region |
| provider | string AWS or GCP | true | name of cloud provider |
## Help

@@ -36,0 +34,0 @@

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