Package to validate German tax ID / steuer ID
npm install validate-steuerid
yarn add validate-steuerid
You can either validate steuerId or generate a valid steuerId
import { isSteuerIdValid, generateSteuerId, generateUniqueSteuerIds } from 'validate-steuerid'
isSteuerIdValid('65299970480')
// => false
isSteuerIdValid('65929970489')
// => true
isSteuerIdValid('26954371827')
// => true
generateSteuerId()
// => random steuerId string
generateUniqueSteuerIds(2)
// => array of 2 unique steuer id strings
yarn generateUniqueSteuerIds 20
-
- type:
string
- type:
-
- type:
number
- type:
-
- type:
string
- type:
For developing the algorithm, we referenced the European Commission's TIN check modules stated here.
THE USE OF THE GENERATOR METHOD IS INTENDED FOR TESTING PURPOSES ONLY. THE NUMBERS GENERATED BY IT ARE COMPLETELY RANDOM AND ARE NOT MEANT TO BE USED IN ANY OFFICIAL CAPACITY.