UNPKG

@maxmind/geoip2-node

Version:

Node.js API for GeoIP2 webservice client and database reader

14 lines (13 loc) 594 B
import * as records from '../records.js'; import { CountryResponse } from '../types.js'; export default class Country { readonly continent?: records.ContinentRecord; readonly country?: records.CountryRecord; readonly maxmind?: records.MaxMindRecord; readonly registeredCountry?: records.RegisteredCountryRecord; readonly representedCountry?: records.RepresentedCountryRecord; readonly traits: records.TraitsRecord; constructor(response: CountryResponse, ipAddress?: string, network?: string); private setBooleanTraits; private setBooleanRegisteredCountry; }