Convert images to HTML tables, for dynamic QR Codes, barcodes and more
$ npm install img2tab
getTable( 'path/to/image/or/url', width, height )
: Get HTML table for image given, returns a Promise
Getting HTML Table for given image
const Img2Tab = require('img2tab');
const instance = new Img2Tab('path/to/image/or/url');
// Returns a Promise
const imageTable = instance.getTable();
imageTable.then(data => console.log(data));
// => String containing HTML table
MIT © Manraj Singh