Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hsndmr/tckimlikno
- Owner: hsndmr
- License: mit
- Created: 2022-11-14T00:32:07.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-15T23:14:44.000Z (over 1 year ago)
- Last Synced: 2024-08-11T10:51:24.515Z (4 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.75 MB
- Stars: 16
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
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
```