UNPKG

tckn

Version:

This is just a simple tool written to generate mock data and validate for the Turkish Republic Identity Number for testing purposes.

6 lines (5 loc) 267 B
//import { Tckn } from './node_modules/tckn/main.js'; import { Tckn } from './index.js'; const tckn = Tckn.generate(); const isValid = Tckn.validate(tckn) ? "valid" : "invalid"; document.querySelector("#lblTckn").innerText = `${tckn}, the number is ${isValid}`;