UNPKG

location-from-ip

Version:

`location-from-ip` gives IP Geolocation information for every IPv4 or IPv6 address

22 lines (18 loc) 553 B
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>IP to Geolocation Example in Browser</title> <meta name="description" content="IP to Geolocation Example"> <meta name="author" content="ipapi.is"> </head> <body> <pre id="location"></pre> <script type="text/javascript" src="dist/ipToGeolocation.min.js"></script> <script type="text/javascript"> ipToGeolocation('43.33.44.11').then((res) => { document.getElementById('location').innerText = JSON.stringify(res, null, 2); }); </script> </body> </html>