### Installing tsemrtd Library Source: https://github.com/li0ard/tsemrtd/blob/main/README.md This snippet provides instructions for installing the tsemrtd library using two popular package managers: npm for Node.js environments and jsr for Bun environments. It shows the commands required to add the library to a project. ```bash # from NPM npm i @li0ard/tsemrtd # from JSR bunx jsr add @li0ard/tsemrtd ``` -------------------------------- ### Loading and Displaying MRZ Data with tsemrtd in TypeScript Source: https://github.com/li0ard/tsemrtd/blob/main/README.md This TypeScript snippet demonstrates how to load and parse DG1 (MRZ information) from a binary file using the tsemrtd library. It reads the file bytes, converts them to a Buffer, loads the DG1 data, and then prints the extracted MRZ string to the console. It requires a Bun runtime environment. ```typescript 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