richorama / country-code-lookup

:earth_africa: Finds countries by various country codes
MIT License
84 stars 28 forks source link

Handle country codes with "-" #37

Closed karthik2265 closed 1 year ago

karthik2265 commented 1 year ago

lookup.byIso('BQ-BA') // BQ-BA represents bonaire but this throws an error

wikipedia link

could you please update the package to handle this.

richorama commented 1 year ago

Hi, thanks for raising this issue. This library does not support ISO 3166-2, and doesn't go to territory level. You can pass in 'BQ' though, and get back 'Bonaire'.