ocr-js-json is a package that allows for ocr results. The current version fixes a bug.
Since the package uses tesseract.js to scan the data, when using its important to import tesseract.js too.
With:
var tesseract = require('tesseract.js');
Docs
Use the package by doing this:
var ocrJsJson = require("ocr-js-json");
var tesseract = require('tesseract.js');
var shl = 'https://tesseract.projectnaptha.com/img/eng_bw.png';
api(shl);
It will console.log the text.
Thanks for using my package!
PS: The code is hosted on https://github.com/NG-Corp/ocr-js-json