2.1.2 • Published 20 hours ago

mongodb-cloud-info v2.1.2

Weekly downloads
37
License
Apache-2.0
Repository
github
Last release
20 hours 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.2

20 hours ago

2.1.1

4 months ago

2.1.0

10 months ago

2.0.1

11 months ago

2.0.0

11 months ago

1.1.4

1 year ago

1.1.3

3 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago