Socket
Book a DemoInstallSign in
Socket

aws-ip-address-lookup

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-ip-address-lookup

Amazon Web Services (AWS) IP address lookup

1.0.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

aws-ip-address-lookup

Build Status Dependencies Status

aws-ip-address-lookup is a node.js module for looking up Amazon Web Services (AWS) IP address details.

See AWS IP Address Ranges.

Contents

Install

npm install aws-ip-address-lookup

Use

Example 1

const AwsIPAddressLookup = require("aws-ip-address-lookup");
let awsIPAddressLookup = new AwsIPAddressLookup();
	
awsIPAddressLookup.lookup('54.255.183.252', function (err, details) {
  if (!err) {
    console.log(JSON.stringify(details));
  }
});

Result:

{
  "ipAddress": "54.255.183.252",
  "ipPrefix": "54.255.0.0/16",
  "region": "ap-southeast-1",
  "service": "AMAZON"
}

Example 2

const AwsIPAddressLookup = require("aws-ip-address-lookup");
let awsIPAddressLookup = new AwsIPAddressLookup();
	
awsIPAddressLookup.lookup(['54.255.183.252', '127.0.0.1', '2620:0107:300f:0000:0000:0000:0000:0000'], (err, details) => {
  if (!err) {
    console.log(JSON.stringify(details));
  }
});

Result:

[
  {
    ipAddress: "54.255.183.252",
    ipPrefix: "54.255.0.0/16",
    region: "ap-southeast-1",
    service: "AMAZON"
  },
  {
    ipAddress: "127.0.0.1",
    ipPrefix: "",
    region: "",
    service: ""
  },
  {
    ipAddress: "2620:0107:300f:0000:0000:0000:0000:0000",
    ipPrefix: "2620:107:300f::/64",
    region: "us-west-1",
    service: "AMAZON"
  }
]

ChangeLog

aws-ip-address-lookup module adheres to Semantic Versioning.

[1.0.1] - 2017-04-15

Changed:

  • Update examples

[1.0.0] - 2017-04-15

  • First release

License

MIT

Keywords

aws

FAQs

Package last updated on 15 Apr 2017

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.