Skip to content

Normalize a German tax number (Steuernummer) to the national format

License

Notifications You must be signed in to change notification settings

kontist/normalize-steuernummer

Repository files navigation

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.

About

Normalize a German tax number (Steuernummer) to the national format

Resources

License

Stars

Watchers

Forks