UNPKG

asn-from-ip

Version:

This tiny module allows you to get ASN information for each IP address. The output includes IP suffixes, AS type, AS country, AS organisation and so on...

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