This project contains simple utilities for form input validation and testing.
Warning
These utilities do not provide UI components or KPS (NVI validation API) validation.
pnpm i @relliv/tc-no-utils
# or
npm i @relliv/tc-no-utils
import { TcNoGenerate } from "@relliv/tc-no-utils"
const tcNo = TcNoGenerate.generate()
import { TcNoValidate } from "@relliv/tc-no-utils"
const tcNo = "11111111111",
result = TcNoValidate.validate(tcNo)
if (result.isValid) {
console.log("TC No is valid")
} else {
console.log(result.message)
}