denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
94.6k stars 5.25k forks source link

Request: Add Web Serial to Deno #9710

Open hashemisa opened 3 years ago

hashemisa commented 3 years ago

Web Serial API

The Web Serial API allows web browsers to communicate with serial devices! You can chat with Arduinos, Raspberry Pis and most any device that speaks serial – straight from your website and no drivers needed.

Chrome 89 stable:

const port = await navigator.serial.requestPort()

const ports = await navigator.serial.getPorts()

https://web.dev/serial

https://www.chromestatus.com/features#milestone%3D89

Web USB API

Chrome 61 stable:

const usb = await navigator.usb.requestDevice()

const usbs = await navigator.usb.getDevices()

https://web.dev/usb

nayeemrmn commented 3 years ago

WebUSB is tracked in #9523, it should be excluded from this issue.

lucacasonato commented 3 years ago

Ref https://github.com/denoland/deno/issues/6210