and there should be some library or database that have it.
Would expect a tool that can search the list and give output of the Country Code based on Country name, or give Country's name based on the 2-letter or 3-letter country code.
Should include bother A-2 (2-letter) and A-3 (3-letter)
Additional context
As a Developer and DevOps Engineer, we always deal with servers naming or other stuff that require country code. A-2 is ok but A-3 would be hard to remember. It's good to have a tool can search.
In addition, if you can do something similar to the City Code (related npm packages) that would be great too.
What tool do you want?
Describe the solution you'd like The entire list can be found here: https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes#Current_ISO_3166_country_codes
and there should be some library or database that have it.
Would expect a tool that can search the list and give output of the Country Code based on Country name, or give Country's name based on the 2-letter or 3-letter country code.
Should include bother A-2 (2-letter) and A-3 (3-letter)
Is their example of this tool in the wild? https://github.com/wooorm/iso-3166
Additional context As a Developer and DevOps Engineer, we always deal with servers naming or other stuff that require country code. A-2 is ok but A-3 would be hard to remember. It's good to have a tool can search.
In addition, if you can do something similar to the City Code (related npm packages) that would be great too.