2.1.5 • Published 10 months ago

mongodb-cloud-info v2.1.5

Weekly downloads
37
License
Apache-2.0
Repository
github
Last release
10 months ago

mongodb-cloud-info

Get cloud information based on hostname.

Usage

Pass a service hostname to the getCloudInfo() function to get cloud information.

import get from 'lodash.get';
import { getCloudInfo } from 'mongodb-cloud-info';

async function getCloudInfoFromDataService(dataService) {
  try {
    const firstServerHostname = get(dataService, 'client.model.hosts.0.host');
    
    return await getCloudInfo(firstServerHostname);
  } catch (e) {
    return {};
  }
}

The return object

{
  isAws: false,
  isGcp: false,
  isAzure: false
}
2.1.5

10 months ago

2.1.4

11 months ago

2.1.3

11 months ago

2.1.2

1 year ago

2.1.1

1 year ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.1.4

2 years ago

1.1.3

4 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago