I recently developed a module that captures keypressed input on a document to detect events from a physical barcode reader acting as a keyboard.
You can find the source code here: https://github.com/tii-bruno/physical-barcode-reader-observer
The npm module is available here: https://www.npmjs.com/package/physical-barcode-reader-observer
While I successfully implemented it in an Ionic project (Angular + Cordova), I encountered difficulties when trying to integrate it into a simple PHP / JavaScript project that uses old include scripts instead of npm.
I attempted to browserify with gulp, but upon using my class, I encountered an error stating that MyObject is undefined.
Could you please provide guidance on how I can accomplish my objective?