turkish-id-verification

1.0.5 • Public • Published

turkish-id-verification

An npm package to check if Turkish ID is real or not

Installation

npm install turkish-id-verification --save


const tid = require('turkish-id-verification');

Usage

Functions

//Checks person's Turkish ID. (Info should be real)
tid.isCorrect({
  Ad: String,
  Soyad: String,
  TCKimlikNo: number,
  DogumYili: number
}).then(res => console.log(res));

returns: {result: boolean, data: info}

//Just check the ID for rule. (Should be 11 digits and (last digit % 2) = 0)
const id = '11111111112'
tid.isRuleOK(id);

returns: {result: boolean, id: givenValue}

Version: 1.0.5

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.5
    4
    • latest

Version History

Package Sidebar

Install

npm i turkish-id-verification

Weekly Downloads

4

Version

1.0.5

License

ISC

Unpacked Size

3.84 kB

Total Files

4

Last publish

Collaborators

  • emirgoren