New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ipaddressapi

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
Package was removed
Sorry, it seems this package was removed from the registry

ipaddressapi

A node.js NPM package to provide you with IP data

unpublished
latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

ipaddressapi


A node.js NPM package to provide you with IP data



NPM version NPM downloads Dependencies Repository view count


npm installnfo

Usage

Add the package

To start, you will need to add the package. To do that, simply run npm i ipaddressapi. In your code, add the following:

const ipaddressapi = require("ipaddressapi");

Now you can use any of the functions below!

API Usage

const ipaddressapi = require("ipaddressapi");

ipaddressapi.address().then(d => console.log(d)) // your ip is returned
ipaddressapi.isV4('127.0.0.1').then(d => console.log(d)) // true
ipaddressapi.isV6('::1').then(d => console.log(d)) // true
ipaddressapi.geo('127.0.0.1').then(d => console.log(d)) // null (because IP is localhost)
ipaddressapi.dns('127.0.0.1').then(d => console.log(d)) // null (because IP is localhost)
ipaddressapi.time('127.0.0.1').then(d => console.log(d)) // null (because IP is localhost)
ipaddressapi.currency('127.0.0.1').then(d => console.log(d)) // null (because IP is localhost)
ipaddressapi.whois('127.0.0.1').then(d => console.log(d)) // null (because IP is localhost)

Keywords

ip

FAQs

Package last updated on 30 Apr 2021

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