dynamsoft-dbr / node-javascript-barcode Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
0|index | ReferenceError: self is not defined
0|index | at Function.<anonymous> (/root/barcode-reader/node_modules/dynamsoft-node-barcode/dist/dbr.js:11:37428)
0|index | at Generator.next (<anonymous>)
0|index | at /root/barcode-reader/node_modules/dynamsoft-node-barcode/dist/dbr.js:11:34867
0|index | at new Promise (<anonymous>)
0|index | at s (/root/barcode-reader/node_modules/dynamsoft-node-barcode/dist/dbr.js:11:34615)
0|index | at Function.loadWasm (/root/barcode-reader/node_modules/dynamsoft-node-barcode/dist/dbr.js:11:37279)
0|index | at Function.<anonymous> (/root/barcode-reader/node_modules/dynamsoft-node-barcode/dist/dbr.js:11:41682)
0|index | at Generator.next (<anonymous>)
0|index | at /root/barcode-reader/node_modules/dynamsoft-node-barcode/dist/dbr.js:11:34867
0|index | at new Promise (<anonymous>)
const express = require('express');
const dotenv = require('dotenv');
dotenv.config();
const app = express();
app.post('/test', async (req, res) => {
let Dynamsoft = require('dynamsoft-node-barcode');
// Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get a trial license
Dynamsoft.BarcodeReader.productKeys = process.env.LICENCSE_KEY;
let reader = await Dynamsoft.BarcodeReader.createInstance();
let response = [];
for (let result of await reader.decode('https://demo.dynamsoft.com/dbr/img/AllSupportedBarcodeTypes.png')) {
response.push(result.barcodeText);
}
res.send({ result: response })
reader.destroy();
})
app.listen(PORT, () => console.log(`BAR CODE READER SERVER AT PORT: ${PORT}`));
Also I have noticed that purchased key is very small compared to trial one.
Trial License --> xxxxxxQAAALU5iIEu4UvLOwuP1jRYrIEkJemxC7qJk0DjzJ2sU1rBSyCh0GQ5ooGrvgzQ/8tqennPSf7T3uFu5JgiTt35RFpBzaubL7Hxxxxx
Purchased License --> xxxac2xx
Please reply at earliest. Our production is down due to this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.