Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

tckn-vkn-validator

MhmtMutlu40MIT1.1.4TypeScript support: included

A library for validating Turkish Identification Numbers (TCKN) and Tax Identification Numbers (VKN).

tckn, vkn, tckn validation, vkn validation, turkey, tax id, identity

readme

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