A reader for MaxMind DB files (the MMDB format that MaxMind's GeoLite2 and DB-IP's free databases use), in plain Elixir so location needs no library. It answers what the TypeScript server's mmdb-lib answers: the record for an address, maps with string keys, or nil when the address is not in the database.
Summary
Functions
The record for an address, or nil. Raises ArgumentError for text that is not an IP address.
A database from its bytes. Raises ArgumentError when it is not one.
A database read from a file.
Types
Functions
The record for an address, or nil. Raises ArgumentError for text that is not an IP address.
A database from its bytes. Raises ArgumentError when it is not one.
A database read from a file.