simple-de-taxid-validator

A simple package to validate German personal TAX-ID

Usage no npm install needed!

<script type="module">
  import simpleDeTaxidValidator from 'https://cdn.skypack.dev/simple-de-taxid-validator';
</script>

README

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.