Fixing .default in node example

pull/174/head
Karel Bílek 8 years ago committed by GitHub
parent c2d583f19a
commit 36be9b6e09

@ -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)

Loading…
Cancel
Save