Open kitsonk opened 3 years ago
We discussed at a weekly design meeting, this is low priority for the core team, but the feature would be welcomed. PR #10912 works, but there is not a viable solution to test it, and we would leave it up to the community to try to figure out a way to test it (without asking for custom runners to be setup) before it could be considered merging.
Is the whole thing still up to date? Is it still being worked on? Would be nice to know! 👍😊
For anyone wondering, it looks like @littledivy created a polyfill a while back (https://github.com/littledivy/webusb). Can't vouch for accuracy, but it's divy so I'm sure it's fantastic.
We should support WebUSB.
Ref: https://developer.mozilla.org/en-US/docs/Web/API/USB Spec: https://wicg.github.io/webusb/
From the spec:
Having WebUSB in Deno would open up whole arena for education, micro controller integration, etc.
Node.js has a couple native modules that provide the bindings, and there are polyfills that layer on top of that to provide WebUSB. Like we have done with other items, we could just expose WebUSB directly as part of the CLI.