1.0.0 • Published 4 years ago

istckn v1.0.0

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

isTCKN

Build Status License

A simple, lightweight module to check if given string or number is a valid TCKN-Turkish National Identity. It checks the given value against the TCKN algorithm.

Example

const isTCKN = require('istckn');

isTCKN('[valid tckn]'); // true
isTCKN([valid tckn]); // true

isTCKN('[invalid tckn]'); // false
isTCKN({}); // false