UNPKG

ppu-paddle-ocr

Version:

Lightweight, probably the fastest PaddleOCR SDK in TypeScript. Runs anywhere JavaScript runs: Node.js, Bun, Deno, mobile react-native, web browsers, and browser extensions. Docker & CLI supported. The official SDK is browser-only. Accurate text detection

3 lines 243 B
#!/usr/bin/env node import{main}from"./run.js";process.on("SIGINT",()=>process.exit(130));try{process.exit(await main(process.argv.slice(2)))}catch(e){process.stderr.write(`${e instanceof Error?e.stack??e.message:String(e)} `);process.exit(1)}