https://github.com/relliv/tc-no-utils
TS based TC No utils. Contains TC no generation and validation utils.
https://github.com/relliv/tc-no-utils
tc-identity tc-no tc-no-validation
Last synced: 8 months ago
JSON representation
TS based TC No utils. Contains TC no generation and validation utils.
- Host: GitHub
- URL: https://github.com/relliv/tc-no-utils
- Owner: relliv
- License: mit
- Created: 2024-04-21T13:44:07.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-18T19:22:39.000Z (12 months ago)
- Last Synced: 2025-10-09T04:32:24.703Z (8 months ago)
- Topics: tc-identity, tc-no, tc-no-validation
- Language: TypeScript
- Homepage: https://stackblitz.com/~/github.com/relliv/tc-no-utils
- Size: 108 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tc-no-utils
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.
## [Play on StackBlitz ⚡️](https://stackblitz.com/~/github.com/relliv/tc-no-utils)
## 📦 Installation
```bash
pnpm i @relliv/tc-no-utils
# or
npm i @relliv/tc-no-utils
```
## 🚀 Usage
### Generate
```ts
import { TcNoGenerate } from "@relliv/tc-no-utils"
const tcNo = TcNoGenerate.generate()
```
### Validate
```ts
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)
}
```