diff --git a/README.md b/README.md index 2167328..5ccc0b1 100644 --- a/README.md +++ b/README.md @@ -567,10 +567,10 @@ that node does not support web-workers out of the box. Therefore the config property `numOfWorkers` must be explicitly set to `0`. ```javascript -var Quagga = require('quagga'); +var Quagga = require('quagga').default; Quagga.decodeSingle({ - src: "image-abc-123.jpg", + src: "image-abc-123.jpg",Using node numOfWorkers: 0, // Needs to be 0 when used within node inputStream: { size: 800 // restrict input-size to be 800px in width (long-side)