0.1.0 • Published 7 years ago

match-german-federal-states v0.1.0

Weekly downloads
7
License
ISC
Repository
github
Last release
7 years ago

match-german-federal-states

Try to match a German federal state name with its ISO code. Inspired by match-country-german.

npm version build status ISC-licensed chat on gitter

Installing

npm install match-german-federal-states

Usage

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

See also

Contributing

If you have a question, found a bug or want to propose a feature, have a look at the issues page.