
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
dynamsoft-javascript-barcode
Advanced tools
Dynamsoft Barcode Reader JS is a recognition SDK which enables you to embed barcode reading functionality in your web, desktop, and mobile applications. With a few lines of JavaScript code, you can develop a robust application to scan a linear barcode, QR
A WebAssembly barcode library for building JavaScript barcode detection apps.
Dynamsoft JavaScript Barcode Reader is a recognition SDK which enables you to embed barcode reading functionality in your web, desktop, and mobile applications. With a few lines of JavaScript code, you can develop a robust application to scan a linear barcode, QR Code, DataMatrix, PDF417, and Aztec Code.
Browser | Version |
---|---|
Chrome | v57+ |
Firefox | v52+ |
Edge | v16+ |
Safari* | v11+ |
Internet Explorer | not supported |
var BarcodeReader = require('dynamsoft-javascript-barcode');
BarcodeReader.licenseKey = 'LICENSE-KEY';
BarcodeReader.createInstance().then(reader => {
reader.decode('sample.png').then(results => {
for(var i = 0; i < results.length; ++i){
console.log(results[i].BarcodeText);
}
reader.deleteInstance();
});
});
<!DOCTYPE html>
<html>
<body>
<script src="node_modules/dynamsoft-javascript-barcode/dist/dbr.min.js"></script>
<script>
BarcodeReader.licenseKey = 'LICENSE-KEY';
let videoReader = new BarcodeReader.Scanner({
onFrameRead: results => {console.log(results);},
onNewCodeRead: (txt, result) => {alert(txt);}
});
scanner.open().catch(ex=>{
console.log(ex);
alert(ex.message || ex);
scanner.close();
});
</script>
</body>
</html>
Alternatively, you can use the jsDelivr CDN as follows:
<!DOCTYPE html>
<html>
<body>
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode/dist/dbr.min.js"></script>
<script>
BarcodeReader.licenseKey = 'LICENSE-KEY';
let videoReader = new BarcodeReader.Scanner({
onFrameRead: results => {console.log(results);},
onNewCodeRead: (txt, result) => {alert(txt);}
});
scanner.open().catch(ex=>{
console.log(ex);
alert(ex.message || ex);
scanner.close();
});
</script>
</body>
</html>
Use Web Server for Chrome for quick deployment.
https://www.dynamsoft.com/help/Barcode-Reader-wasm/index.html
More: https://github.com/dynamsoft-dbr/javascript-barcode
https://demo.dynamsoft.com/dbr_wasm/barcode_reader_javascript.html
Get a FREE 30-day trial license.
FAQs
Dynamsoft Barcode Reader JS is a recognition SDK which enables you to embed barcode reading functionality in your web, desktop, and mobile applications. With a few lines of JavaScript code, you can develop a robust application to scan a linear barcode, QR
The npm package dynamsoft-javascript-barcode receives a total of 9,021 weekly downloads. As such, dynamsoft-javascript-barcode popularity was classified as popular.
We found that dynamsoft-javascript-barcode demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.