a qrdecode with nodejs
- decode the qr image
this package have used canvas@2.0, fs, so be sure that you have installed the canvas.
- npm install node-qrdecode
when you have installed the node-qrdecode, you can use it by follow:
let qrdecode = require('node-qrdecode');
let imgpath = '/home/test.jpg';
qrdecode(imgpath).then(function(data){
console.log(data);
}).catch...
or you can use it by async/await
...
let data = await qrdecode(imgpath);
console.log(data);
- email(1256136108@qq.com)
- QQ: 1256136108
var hehe = {
nickName : "gnep",
site : "www.5min8.com"
}