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: about 2 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 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-15T22:05:22.000Z (12 months ago)
- Last Synced: 2025-03-12T14:50:38.740Z (3 months ago)
- Topics: tc-identity, tc-no, tc-no-validation
- Language: TypeScript
- Homepage: https://stackblitz.com/~/github.com/relliv/tc-no-utils
- Size: 106 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)
}
```