UNPKG

ip-to-hosting

Version:

This package allows you to check whether an IP address belongs to a hosting provider or not. In case the IP address can be successfully linked to a hosting provider (datacenter), this module will return the meta information for the hosting provider.

15 lines (13 loc) 307 B
const { ipToHosting } = require('./src/ip_to_hosting'); const ipAddresses = [ '144.168.164.55', '167.99.241.66', '97.107.129.77', '85.10.199.76', ]; for (let ip of ipAddresses) { ipToHosting(ip).then(function (isHosting) { console.log(`${ip} isHosting:`); console.log(isHosting); }); }