ip-lookup.js

1.0.0 • Public • Published

IP-Lookup.js

Example Usage

// Require the Package
const ip = require("ip-lookup.js")

// Using await/async
let data = await ip.lookup("ip")

// Log the recieved data
console.log(data)

// Using then
ip.lookup("ip").then(data => console.log(data))

Successful Response

/*
  {
   "status":"success",
   "country":"XXX",
   "countryCode":"XXX",
   "region":"XXX",
   "regionName":"XXX",
   "city":"XXX",
   "zip":"XXX",
   "lat":XXX,
   "lon":XXX,
   "timezone":"XXX",
   "isp":"XXX",
   "org":"XXX",
   "as":"XXX",
   "query":"XXX"
}
*/

Package Sidebar

Install

npm i ip-lookup.js

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

34 kB

Total Files

5

Last publish

Collaborators

  • rocky_1000