Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
electron
AllSupportedBarcodeTypes.tif
LICENSE
README.md
binding.gyp
dbr.cc
dbr.js
index.htm
package.json
server.js

README.md

Node.js Barcode Reader for Windows, Linux & Mac

The sample demonstrates how to use Dynamsoft Barcode Reader SDK and Node.js to create Web barcode reader on Windows, Linux and Mac.

Node.js Version

v5.5.0

Install node-gyp

npm install -g node-gyp

Windows

Install DBR for Windows, Visual Studio and Python v2.7.

Linux

Install DBR for Linux.

Mac

Install DBR for Mac and Xcode.

Probably you will get the following error when running node-gyp configure:

error: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
solution: 

Here is the solution from StackOverflow:

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

Getting Started

  1. Edit binding.gyp. Replace < DBR Installation Directory > with yours.

  2. Configure building environment:

    node-gyp configure
    
  3. Build project:

    node-gyp build
    
  4. Run server:

    node server.js
    
  5. Visit http://localhost:2016/index.htm

    online barcode reader with nodejs

Reference

Blog

You can’t perform that action at this time.