Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 696 Bytes

README.md

File metadata and controls

37 lines (22 loc) · 696 Bytes

normalize-steuernummer

Normalize a German tax number (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 tax number (Steuernummer).

state

Type: string

State (Bundesland) as ISO 3166-2 code.