Try to match given german country name with its ISO 3166-1 code.
const match = require('match-country-german')
match('Deutschland') // 'DE'
match('vereinigte staaten von amerika') // 'US'
match('Großbritannin') // 'GB'
match('Großbrltannein') // null
For e.g. Xambia
, there are two possible countries Sambia
and Gambia
. In this case, match
will return null
.
If you found a bug, want to propose a feature or feel the urge to complain about your life, feel free to visit the issues page.