Try to match a German federal state name with its ISO code. Inspired by match-country-german
.
npm install match-german-federal-states
const match = require('match-german-federal-states')
// English
match('Brandenburg') // BB
match('rhineland palatinate') // RP
match('baden-weurttemberg') // BW
// German
match('Brandenburg', 'de') // BB
match('mecklenburg vorpommern', 'de') // MV
match('neidersachsen', 'de') // NI
match('thüringen', 'de') // TH
match-country-german
– Try to match given german country name with its ISO code.
If you have a question, found a bug or want to propose a feature, have a look at the issues page.