PNG JPG BMP TIFF SVG
Aspose.BarCode  for Node.js via Java
Code 39

Read Code 39 Barcodes with Node.js via Java

Read Code 39 barcode in JavaScript using server-side Aspose.BarCode for Node.js via Java API

How to Read Code 39 barcode Using Node.js via Java

To recognize Code 39 barcode within Node.js applications, use Aspose.BarCode for Node.js via Java, a robust, versatile, and user-friendly barcode library introduced for Java-based environments. You can load aspose.barcode for Javascript directly from NPM:

Command

  > npm i aspose.barcode

Steps for Scanning Code 39 barcode in JavaScript

Aspose.BarCode allows developers to read Code 39 barcode barcodes from stream or image with few lines of code

  • Create an object of Aspose.BarCode.BarCodeReader class
  • Pass the source file path containing Code 39 barcode as a parameter
  • Set target barcodes types in DecodeType as the second parameter
  • Loop through all detected barcodes
  • Fetch the resulting barcode text using the CodeText property

System Requirements

Aspose APIs are supported on all major platforms and operating systems. Before executing the code sample below, please make sure that your system comply with the following requirements.

  • Microsoft Windows, Linux, or any OS compatible with Node.js
  • Node.js and Node.js/Java Bridge installed
  • Oracle JDK version 7 or above
Ready to recognize Recognizing Drop a file here or click to browse *

* By uploading your files or using the service you agree with our Terms of use and Privacy Policy.

Code to be executed - JavaScript

    
const barcode_ = require("aspose.barcode");
const aspose_barcode = barcode_.AsposeBarcode

let BarCodeReader = aspose_barcode.BarCodeReader;
let QualitySettings = aspose_barcode.QualitySettings;

let reader = new BarCodeReader("<file name>", null, DecodeType.Code39);
reader.readBarCodes().forEach(function (result, i, results)
{
    console.log(result.getCodeText());
    console.log(result.getCodeTypeName());
});

×
Barcode image

Other Supported Barcode Recognition Symbologies

Using Node.js via Java, One can also read barcode of different symbologies including the following.

2D:

Linear:

Postal: