node-usb-detection:列出系统中的USB设备并检测其更改

时间:2021-04-30 22:48:58
【文件属性】:
文件名称:node-usb-detection:列出系统中的USB设备并检测其更改
文件大小:63KB
文件格式:ZIP
更新时间:2021-04-30 22:48:58
C++ USB检测 usb-detection使您可以侦听系统上USB设备的插入/删除事件。 安装 npm install usb-detection 安装电子 该模块使用本机扩展,需要针对您的目标版本的Electron进行编译。 可以使用构建和发布最新版本的Node.js和Electron的预编译二进制文件,并可以使用自动安装。 有关,请参阅以确保您的项目已设置为针对您的Electron版本正确使用预构建的二进制文件。 如果您遇到以下错误,则可以使用以下确切步骤: detection.node was compiled against a different Node.js version using NODE_MODULE_VERSION 72. This version of Node.js requires NODE_MODULE_VERSION 80. Please try re-
【文件预览】:
node-usb-detection-master
----.gitignore(152B)
----README.md(8KB)
----CHANGELOG.md(8KB)
----appveyor.yml(2KB)
----binding.gyp(1KB)
----test()
--------fixtures()
--------dev-helper-test.js(1KB)
--------.eslintrc(147B)
--------test.js(5KB)
--------lib()
----.eslintrc(2KB)
----package.json(1KB)
----src()
--------detection.h(1KB)
--------detection.cpp(8KB)
--------deviceList.cpp(2KB)
--------detection_linux.cpp(8KB)
--------detection_mac.cpp(14KB)
--------detection_win.cpp(16KB)
--------deviceList.h(1KB)
----index.js(3KB)
----index.d.ts(1KB)
----doc()
--------debugging-notes.md(245B)
----.npmignore(21B)
----.travis.yml(3KB)
----license(1KB)
----package-lock.json(122KB)

网友评论