9.6.42 • Published 8 months ago

dynamsoft-javascript-barcode v9.6.42

Weekly downloads
4,529
License
SEE LICENSE IN LI...
Repository
github
Last release
8 months ago

Dynamsoft JavaScript Barcode SDK for Node and Web

Dynamsoft JavaScript Barcode SDK

A WebAssembly barcode library for building JavaScript barcode detection apps.

Overview

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.

Supported Barcode Symbologies

  • 1D barcode: Code 39, Code 93, Code 128, Codabar, EAN-8, EAN-13, UPC-A, UPC-E, Interleaved 2 of 5 (ITF), Industrial 2 of 5 (Code 2 of 5 Industry, Standard 2 of 5, Code 2 of 5), ITF-14.
  • 2D barcode: QRCode, DataMatrix, PDF417, and Aztec Code.

Browser Compatibility

BrowserVersion
Chromev57+
Firefoxv52+
Edgev16+
Safari*v11+
Internet Explorernot supported

Usage

Node

var dbr = require('dynamsoft-javascript-barcode');
dbr.BarcodeReader.productKeys = 'LICENSE-KEY';
dbr.BarcodeReader.createInstance().then(reader => {
    reader.decode('sample.png').then(results => {
        for(var i = 0; i < results.length; ++i){
            console.log(results[i].BarcodeText);
        }
        reader.destroy();
    });
});

Web

<!DOCTYPE html>
<html>
<body>
    <script src="node_modules/dynamsoft-javascript-barcode/dist/dbr.min.js" data-productKeys="LICENSE-KEY"></script>
    <script>
        let barcodeScanner = null;
        Dynamsoft.BarcodeScanner.createInstance({
            onFrameRead: results => {console.log(results);},
            onUnduplicatedRead: (txt, result) => {alert(txt);}
        }).then(scanner => {
            barcodeScanner = scanner;
            barcodeScanner.show();
        });
    </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@7/dist/dbr.min.js" data-productKeys="LICENSE-KEY"></script>
    <script>
        let barcodeScanner = null;
        Dynamsoft.BarcodeScanner.createInstance({
            onFrameRead: results => {console.log(results);},
            onUnduplicatedRead: (txt, result) => {alert(txt);}
        }).then(scanner => {
            barcodeScanner = scanner;
            barcodeScanner.show();
        });
    </script>
</body>
</html>

Use Web Server for Chrome for quick deployment.

API Reference

https://www.dynamsoft.com/help/Barcode-Reader-wasm/index.html

Samples

  • samples/node
  • samples/web

More: https://github.com/dynamsoft-dbr/javascript-barcode

Online Demo

https://demo.dynamsoft.com/dbr_wasm/barcode_reader_javascript.html

Web barcode reader

License

Get a FREE 30-day trial license.

Contact Us

https://www.dynamsoft.com/Company/Contact.aspx

9.6.42

10 months ago

9.6.41

10 months ago

9.6.40

11 months ago

9.6.33

1 year ago

9.6.32

1 year ago

9.6.30

1 year ago

9.6.31

1 year ago

9.6.21

2 years ago

9.6.20

2 years ago

9.6.11

2 years ago

9.6.10

2 years ago

9.6.2

2 years ago

9.6.1

2 years ago

9.6.0

2 years ago

9.4.0-iv11082320

2 years ago

9.3.1

2 years ago

9.4.0-iv11082257

2 years ago

9.3.0

2 years ago

9.2.10

3 years ago

9.2.11

3 years ago

9.2.12

3 years ago

9.2.13

2 years ago

9.0.2

3 years ago

9.0.1

3 years ago

9.0.0

3 years ago

8.8.5

3 years ago

8.8.7

3 years ago

8.8.1

3 years ago

8.8.0

3 years ago

8.8.3

3 years ago

8.6.3

3 years ago

8.6.1

3 years ago

8.6.0

3 years ago

8.4.0

4 years ago

8.2.11

4 years ago

8.2.7

4 years ago

8.2.9

4 years ago

8.2.5

4 years ago

8.2.3

4 years ago

8.2.1

4 years ago

8.2.0

4 years ago

8.1.3

4 years ago

8.1.2

4 years ago

8.1.0

4 years ago

8.0.0

4 years ago

7.6.0

4 years ago

7.5.0-v1

5 years ago

7.5.0-v0

5 years ago

7.4.0-v1

5 years ago

7.4.0-v0

5 years ago

7.3.0-v4

5 years ago

7.3.0-v3

5 years ago

7.3.0-v2

5 years ago

7.3.0-v1

5 years ago

7.3.0-v0

5 years ago

7.2.3-v2

5 years ago

7.2.2-v2

5 years ago

7.1.3

5 years ago

7.1.2

5 years ago

7.1.1

5 years ago

7.1.0

5 years ago

7.1.0-beta.1

5 years ago

7.0.0

5 years ago

6.5.4

6 years ago

6.5.3

6 years ago

6.5.2

6 years ago

6.5.1

6 years ago

6.4.2

6 years ago

6.4.1

6 years ago