Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emirgoren/turkish-id-verification
An npm package to check if Turkish ID is real or not.
https://github.com/emirgoren/turkish-id-verification
check-turkish-id id-checking javascript npm npm-packages turkey turkish-id
Last synced: about 24 hours ago
JSON representation
An npm package to check if Turkish ID is real or not.
- Host: GitHub
- URL: https://github.com/emirgoren/turkish-id-verification
- Owner: emirgoren
- License: isc
- Created: 2021-11-02T01:54:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-23T01:55:37.000Z (about 1 year ago)
- Last Synced: 2024-05-02T04:14:56.507Z (9 months ago)
- Topics: check-turkish-id, id-checking, javascript, npm, npm-packages, turkey, turkish-id
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/turkish-id-verification
- Size: 10.7 KB
- Stars: 22
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```
Functionstid.isCorrect(Object)
//Checks person's Turkish ID. (Info must be real)
tid.isCorrect({
Ad: String,
Soyad: String,
TCKimlikNo: number,
DogumYili: number
}).then(res => console.log(res));returns: {result: boolean, data: info}
tid.isRuleOK(String)
//Checks 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