Skip to content

derhuerst/match-german-federal-states

Repository files navigation

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.

About

Try to match a German federal state name with its ISO code.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published