x/serial
A Work In Progress serial library.
import { availablePorts } from 'Serial' const ports = await availablePorts(); for ( const port of ports ) console.log(port) // '/dev/USB0'