Skip to content

@nhtio/adonis-maxmind/constants ​

The module responsible for defining and exporting any constants used throughout the Adonis MaxMind package, such as database types, download URLs, and any other relevant constant values.

Enumerations ​

EnumerationDescription
MaxMindDatabasesAn enumeration of the available MaxMind databases supported by this package.
MaxMindDatabaseUrlsAn enumeration of the download URLs for the MaxMind databases supported by this package.

Type Aliases ​

Type AliasDescription
CountryType representing a single country object from the Country array.
CountryAlpha2Type representing any valid ISO 3166-1 alpha-2 country code.
CountryAlpha3Type representing any valid ISO 3166-1 alpha-3 country code.
CountryCitizenshipType representing any valid citizenship/nationality demonym.
CountryNameType representing any valid country name from the dataset.

Variables ​

VariableDescription
CountryComprehensive list of world countries with their ISO codes, citizenship information, and subdivisions.
CountryAlpha2Array of all ISO 3166-1 alpha-2 country codes.
CountryAlpha3Array of all ISO 3166-1 alpha-3 country codes.
CountryCitizenshipArray of all citizenship/nationality demonyms from the Country data.
CountryNameArray of all country names extracted from the Country data.