Skip to content

Simple validator for Steuerliche Identifikationsnummer (German personal tax number) according to the official docs (see readme).

License

Notifications You must be signed in to change notification settings

wlecki/simple-de-taxid-validator

Repository files navigation

simple-de-taxid-validator

Important

Code of this validator is taken (with small changes like optimization or removing not needed elements) from THIS REPOSITORY. Super thank you guys, you did a great job.

About

This simple package helps you with validating Steuerliche Identifikationsnummer (German personal tax number) according to THIS OFFICIAL DOCUMENT.

IdNr (Steuerliche Identifikationsnummer, German personal tax number).

The IdNr (or Steuer-IdNr) is a personal identification number that is assigned to individuals in Germany for tax purposes and is meant to replace the Steuernummer. The number consists of 11 digits and does not embed any personal information.
Sources:

Installation

simple-de-taxid-validator is available as an npm package.

// with npm
npm i simple-de-taxid-validator
// with yarn
yarn add simple-de-taxid-validator

Usage

import { deTaxIdValidator } from 'simple-de-taxid-validator';

const { isValid } = deTaxIdValidator.validate(value);
const formattedTaxIdNumber = deTaxIdValidator.format(value);

License

This project is licensed under the terms of the MIT license.

About

Simple validator for Steuerliche Identifikationsnummer (German personal tax number) according to the official docs (see readme).

Resources

License

Stars

Watchers

Forks