Skip to content

Turkish Identification Number Verification & Validation Package for NodeJs

License

Notifications You must be signed in to change notification settings

hsndmr/tckimlikno

Repository files navigation

TCKimlikNo

Turkish Identification Number Verification & Validation Package for NodeJs. This package is inspired by https://github.com/deligoez/tckimlikno

Installation

npm i @demirjs/tckimlikno

Usage

import {validateTcKimlikNo} from '@demirjs/tckimlikno'

validateTcKimlikNo({
    name: 'yourName',
    surname: 'yourSurname',
    tc: 1,
    birthYear: 1
}).then(result => console.log(result))

How to verify a T.C. Kimlik No

If you want to verify only tcKimlikNo you could validate it using verifyTcKimlikNo function. You could use it for tcKimlikNo rule.

import {verifyTcKimlikNo} from '@demirjs/tckimlikno'

console.log(verifyTcKimlikNo('12345678901')) // false
console.log(verifyTcKimlikNo('10000000146')) // true

About

Turkish Identification Number Verification & Validation Package for NodeJs

Resources

License

Stars

Watchers

Forks

Packages

No packages published