Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 2 months ago
JSON representation

simple library for eMRTD. supports browsers, node, bun and more!

Awesome Lists containing this project

README

        



tsemrtd logo



tsemrtd

simple library for eMRTD datagroups


site
 • 
docs












> [!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!

## 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(Buffer.from(file))
console.log(data)
// P