You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
7 months ago | |
---|---|---|
.gitignore | 7 months ago | |
README.md | 7 months ago | |
package-lock.json | 7 months ago | |
package.json | 7 months ago | |
src.js | 7 months ago | |
test.js | 7 months ago |
README.md
ip.me
Fetch IP geolocation information and WhoIs data from ip.me
.
const ipme = require("ip.me");
(async function() {
let userIp = await ipme.ip();
console.log(`IP Information (Personal):`, userIp);
let googleIp = await ipme.ip("8.8.8.8");
console.log(`\n\nIP Information (Google DNS):`, googleIp);
let whois = await ipme.whois("google.com");
console.log(`\n\nWhois Information (google.com):\n\n`, whois);
let whois2 = await ipme.whois("https://ip.me/");
console.log(`\n\nWhois Information (ip.me):\n\n`, whois2);
})();