given an ip address, return which cloud provider it belongs to (EC2, GCE, etc)
$ which-cloud 22.214.171.124 gce
if no ip is given,
which-cloud will use the public ip of the current host
$ which-cloud AT&T Internet Services (SIS-80)
npm i which-cloud -g
npm i which-cloud --save
const whichCloud = require('which-cloud')
ip: string, optional
Determine the cloud provider for this ip
If no ip is given, the public ip of the current host will be used
callback: function, required
Called with an
Erroror the determined cloud provider as a string
- Amazon Web Services (aws).
- Google Compute Engine (gce).
- Azure (azure).
- fallback to whois lookup.
I would love help adding support for more cloud services.