0.0.2 • Published 3 years ago

changedrive v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

changedrive(USB U盘变化监听)

可能存在的问题 (Possible problems)

  • 无法监听USB3.0 U盘 (未知原因) (Unable to listen to USB 3.0 USB flash drive (unknown reason))
  • 版本要求最低 node 10.0 (node version not less than 10)
  • 过快的回调(例如一秒三次以上的USB接入弹出) (Too frequent connection disconnection)
  • 使用异步函数 (Use of async function)

另外一种解决方式(Recommended Solution Module)

使用:changedrive-cli

如何使用(Operation method)

let changedrive =require("changedrive");
changedrive.changeDrive((type,id)=>{
    console.log(type,id);
});
// "remove" "这是一段id"
// "add" "这是一段id"
0.0.2

3 years ago

0.0.1

3 years ago