match-german-federal-states

0.1.0 • Public • Published

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.

Package Sidebar

Install

npm i match-german-federal-states

Weekly Downloads

1

Version

0.1.0

License

ISC

Last publish

Collaborators

  • derhuerst