normalize-steuernummer
v1.0.0
Published
Normalize a German steuernummer to the national format
Downloads
1,058
Readme
normalize-steuernummer
Normalize a German steuernummer to the national format
Installation
$ npm install normalize-steuernummer
Usage
const normalizeSteuernummer = require('normalize-steuernummer')
normalizeSteuernummer('21/815/08150', 'DE-BE')
// => "1121081508150"
normalizeSteuernummer('75 815 08152', 'DE-HB')
// => "2475081508152"
API
normalizeSteuernummer(steuernummer, state)
steuernummer
Type: string
German steuernummer (tax number).
state
Type: string
State (bundesland) as ISO 3166-2 code.