Search code examples
node.jsnode-webkit

How to retrieve code from real barcode scanner in node.js for node-webkit app


I'm developing an desktop application using node-webkit(nw.js) i want to integrate real barcode scanner with that app for merchants how can i integrate real barcode scanner with node.js


Solution

  • It is hard to say anything without the hardware specification, but I think, it is easier than you think. The most barcode scanner is a simple keyboard input. Simpli just enter scanned bar code data into any application as if the data was being keyed in by the user. Just scan a bar code and the data will appear wherever the cursor is placed.

    So you don't need to worry about it, just handle keyboard events.