js 连接 usb 设备

草案

  1. https://wicg.github.io/webusb/

    参考

  2. https://web.dev/usb/

    备注

  3. smart card 出于安全性考虑,无法连接

Connecting to smart card readers is outside the scope of the WebUSB API. The reason for this is that the security properties of smart cards make it inappropriate to allow arbitrary code to access them. There is too great a risk of phishing attacks.
The WebAuthn API has built-in protections against this type of attack and is the preferred method to interface with security hardware.