Skip to content

MhmtMutlu/tckn-vkn-validator

Repository files navigation

Tckn & Vkn Validator

Includes validateTckn and validateVkn functions to validate Turkish Identification Number (Tckn) and Tax Identification Number (Vkn)

NPM JavaScript Style Guide

Install

npm install tckn-vkn-validator

Usages

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);

License

MIT