UNPKG
node-hid-stream
Version:
latest (1.1.0)
1.1.0
1.0.0
0.0.3
0.0.2
0.0.1
Stream data from HID device in Node.js
agirorn/node-hid-stream
node-hid-stream
/
spec
/
helpers
/
node-hid.js
15 lines
(11 loc)
•
234 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const
EventEmitter
=
require
(
'events'
).
EventEmiu
;
function
HID
(
) {
const
device =
new
EventEmitter
(); device.
close
=
function
close
(
) {};
return
device; }
const
nodeHid = {
HID
,
devices
(
) {}, };
module
.
exports
= nodeHid;