UNPKG

ip-lookup.js

Version:

The Most easy way to get information of an IP Address!

43 lines (34 loc) 624 B
# IP-Lookup.js - Discord: https://discord.gg/kFhjUU3DA2 ## Example Usage ```javascript // 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 ```javascript /* { "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" } */ ```