Static
openOpens a mmdb file and returns a ReaderModel promise
The file to open
Optional
opts: OpenOptsOptions for opening the file. See https://github.com/runk/node-maxmind#options
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)
});
Static
openOpens a buffer that contains mmdb data and returns a ReaderModel
The buffer to open
Generated using TypeDoc
Class representing the mmdb reader *