tckn
v1.0.4
Published
This is just a simple tool written to generate mock data and validate for the Turkish Republic Identity Number for testing purposes.
Maintainers
Readme
tckn
This is just a simple tool written to generate mock data and validate for the Turkish Republic Identity Number for testing purposes.
import { Tckn } from './node_modules/tckn/main.js';
const tckn = Tckn.generate();
const isValid = Tckn.validate(tckn) ? "valid" : "invalid";
document.querySelector("#lblTckn").innerText = `${tckn}, the number is ${isValid}`;