tsemrtd
simple library for MRTD Datagroups
Warning
tsemrtd is currently in alpha stage: the lib is not very stable yet, and there may be a lot of bugs feel free to try it out, though, any feedback is appreciated!
bunx jsr add @li0ard/tsemrtd
npx jsr add @li0ard/tsemrtd # for npm
import { DG1 } from "@li0ard/tsemrtd"
let file = await Bun.file("EF_DG1.bin").bytes()
let data = DG1.load(Buffer.from(file))
console.log(data)
// P<D<<MUSTERMANN<<ERIKA<<<<<<<<<<<<<<<<<<<<<<
// C11T002JM4D<<9608122F1310317<<<<<<<<<<<<<<<6
- COM
- DG1
- DG2
- DG3
- DG5
- DG7
- DG11
- DG12
- DG14
- DG15
- SOD
Library doesn't support datagroups #6,8,9,10,13,16 because they are defined for optional information for each state.