UNPKG

@maxmind/geoip2-node

Version:

Node.js API for GeoIP2 webservice client and database reader

19 lines (18 loc) 539 B
import * as models from './models'; interface Options { host?: string; timeout?: number; } export default class WebServiceClient { private accountID; private licenseKey; private timeout; private host; constructor(accountID: string, licenseKey: string, options?: Options | number); city(ipAddress: string): Promise<models.City>; country(ipAddress: string): Promise<models.Country>; insights(ipAddress: string): Promise<models.Insights>; private responseFor; private handleError; } export {};