UNPKG

@maxmind/geoip2-node

Version:

Node.js API for GeoIP2 webservice client and database reader

16 lines (15 loc) 610 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class AnonymousIP { constructor(response, ipAddress, network) { this.ipAddress = ipAddress; this.isAnonymous = !!response.is_anonymous; this.isAnonymousVpn = !!response.is_anonymous_vpn; this.isHostingProvider = !!response.is_hosting_provider; this.isPublicProxy = !!response.is_public_proxy; this.isResidentialProxy = !!response.is_residential_proxy; this.isTorExitNode = !!response.is_tor_exit_node; this.network = network; } } exports.default = AnonymousIP;