Have been trying hard all day to get input from an USB based HID RFID reader into node-red. Have achieved some success which I want to share with others.
https://flows.nodered.org/node/node-red-contrib-usbhid has gotten really old and does not work out of the box. So installed https://github.com/node-hid/node-hid#building-node-hid-from-source-for-your-projects from source.
Needed to make sure latest node-red, nodejs, python and visual studio are installed in windows.
Then had setup a function node and imported a node-hid module as setup here and then wrote to code as shown below to get the HID device info in debug