Includes validateTckn and validateVkn functions to validate Turkish Identification Number (Tckn) and Tax Identification Number (Vkn)
npm install tckn-vkn-validator
validateTckn function gets tckn (string) as a parameter and returns boolean as a result. It only checks tckn in accordance with its rules.
import { validateTckn } from "tckn-vkn-validator";
const tckn: string = "11111111110";
const result: boolean = validateTckn(tckn);
validateVkn function gets vkn (string) as a parameter and returns boolean as a result. It only checks vkn in accordance with its rules.
import { validateVkn } from "tckn-vkn-validator";
const vkn: string = "1430466081";
const result: boolean = validateVkn(vkn);
MIT