https://github.com/li0ard/tsemrtd
simple library for eMRTD. supports browsers, node, bun and more!
https://github.com/li0ard/tsemrtd
bun deno icao-9303 mrtd nodejs passport typescript
Last synced: 9 months ago
JSON representation
simple library for eMRTD. supports browsers, node, bun and more!
- Host: GitHub
- URL: https://github.com/li0ard/tsemrtd
- Owner: li0ard
- License: mit
- Created: 2024-08-27T14:21:05.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-18T08:33:44.000Z (about 1 year ago)
- Last Synced: 2025-08-29T07:04:43.463Z (10 months ago)
- Topics: bun, deno, icao-9303, mrtd, nodejs, passport, typescript
- Language: TypeScript
- Homepage: https://tsemrtd.li0ard.rest
- Size: 186 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README

tsemrtd
simple library for eMRTD datagroups
site
•
docs
## Features
- Simple: Hides decoding process and provides simple and modern API
- Type-Safe: Most of the APIs are strictly typed to help your workflow
- Compliance: Fully complies with ICAO 9303 and ISO/IEC 19794 standards
- Supports Bun, Node.js, Deno, Browsers, Cloudflare Workers
- Supports CSCA masterlist's (ICAO PKD)
## Installation
```bash
# from NPM
npm i @li0ard/tsemrtd
# from JSR
bunx jsr add @li0ard/tsemrtd
```
## Usage
### Get MRZ
```ts
import { DG1 } from "@li0ard/tsemrtd"
let file = await Bun.file("EF_DG1.bin").bytes()
let data = DG1.load(file)
console.log(data)
// P