This is bugging me for several days now. I know about the standard stream redirection to the NUL device, but this isn\'t the case. node.js uses CreateFileW under its fs native/l
There is a long workaround, like code it yourself. But you can take an idea from here https://github.com/hanshuebner/node-hid/blob/master/src/HID.cc and write a wrapper over C library.