Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hsndmr/tckimlikno

Turkish Identification Number Verification & Validation Package for NodeJs
https://github.com/hsndmr/tckimlikno

Last synced: 24 days ago
JSON representation

Turkish Identification Number Verification & Validation Package for NodeJs

Awesome Lists containing this project

README

        

# TCKimlikNo

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

# Installation

```bash
npm i @demirjs/tckimlikno
```

# Usage

```bash
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.

```bash
import {verifyTcKimlikNo} from '@demirjs/tckimlikno'

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