New features
- Added more functions to get list of specified details from country list
getAllCountryNames()
getAllAlpha2()
getAllAlpha3()
- Added
OutputType
enum to specify return type
Changed features
-
Specify Return/Output types for find functions
To specify the desired output format, you can optionally pass the second param to find functions (viz. - findCountry, findAlpha2, findAlpha3, findNum3). These functions will default return a country object if the parameter is not supplied.
You can specify any value from the following:"obj", "name", "alpha2", "alpha3", "num3"
.
What's Changed
- Refactored import name to iso3166Lookup in readme and tests by @omkartapale in #5
- Fixed #6: Incorrect function called in test by @omkartapale in #7
- Feature Updates by @omkartapale in #8
Full Changelog: v1.0.0...v1.1.0