How razmans/mykad works
MyKad Validator is a small TypeScript library that accepts a MyKad number and returns validation and derived identity details. Users can call individual functions or use readMyKadNum to obtain validity, age, date of birth, state, and gender together. The runtime is implemented in one source file; the graph separates its distinct responsibilities. Relationships are supported by the source excerpt and README.
Main entry points: index.ts Combined Reader
Components 7
Other components
- Library User
- Combined Reader
index.ts - Format Validator
index.ts - Age Calculator
index.ts - Birth Date
index.ts - Gender Resolver
index.ts - Birth State
index.ts
Connections 15
- Library User → Combined Reader: requests details
README.md - Library User → Format Validator: validates number
README.md - Library User → Age Calculator: requests age
README.md - Library User → Birth Date: requests birth date
README.md - Library User → Gender Resolver: requests gender
README.md - Library User → Birth State: requests state
README.md - Combined Reader → Format Validator: checks format
index.ts - Combined Reader → Age Calculator: calculates age
index.ts - Combined Reader → Birth Date: gets birth date
index.ts - Combined Reader → Gender Resolver: gets gender
index.ts - Combined Reader → Birth State: gets birth state
index.ts - Age Calculator → Format Validator: checks format
index.ts - Birth Date → Format Validator: checks format
index.ts - Gender Resolver → Format Validator: checks format
index.ts - Birth State → Format Validator: checks format
index.ts