Class representing the mmdb reader *

Constructors

Methods

Constructors

Methods

  • Opens a mmdb file and returns a ReaderModel promise

    Parameters

    Returns Promise<ReaderModel>

    Example

    Reader.open('somefile.mmdb').then(reader => {
    const response = reader.city('123.123.123.123')
    console.log(response.city) // The city object (maxmind.CityField)
    console.log(response.country) // The country object (maxmind.CountryField)
    });

Generated using TypeDoc