From 9206c022ad83b29a07c21d181907192b7c6021df Mon Sep 17 00:00:00 2001 From: Jerome Wu Date: Thu, 9 May 2019 01:24:35 +0800 Subject: [PATCH] Update README.md --- README.md | 11 +++++----- docs/examples.md | 55 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 5 deletions(-) create mode 100644 docs/examples.md diff --git a/README.md b/README.md index 32ea2d9..53759ca 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,8 @@ import { TesseractWorker } from 'tesseract.js'; const worker = new TesseractWorker(); worker.recognize(myImage) - .progress(function(p) { console.log('progress', p) }) - .then(function()result) { console.log('result', result) }) + .progress((p) => { console.log('progress', p); }) + .then((result) => { console.log('result', result); }); ``` [Check out the docs](#docs) for a full treatment of the API. @@ -33,7 +33,7 @@ Tesseract.js wraps an [emscripten](https://github.com/kripken/emscripten) [port] # Installation Tesseract.js works with a `