Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

which-cloud

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

which-cloud

given an ip address, return which cloud provider it belongs to (AWS, GCE, etc)

latest
Source
npmnpm
Version
1.3.0
Version published
Weekly downloads
8
300%
Maintainers
1
Weekly downloads
 
Created
Source

which-cloud

Build Status Coverage Status Standard Version

given an ip address, return which cloud provider it belongs to (EC2, GCE, etc)

$ which-cloud 104.196.27.39
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)

Installing

CLI

npm i which-cloud -g
which-cloud

Module

npm i which-cloud --save
const whichCloud = require('which-cloud')

API

whichCloud([ip,] callback)

  • 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 Error or the determined cloud provider as a string

Supported Clouds

  • Amazon Web Services (aws).
  • Google Compute Engine (gce).
  • Azure (azure).
  • fallback to whois lookup.

Patches Welcome!

I would love help adding support for more cloud services.

License

ISC

Keywords

cloud

FAQs

Package last updated on 14 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts