How to use the @serialport/stream.list function in @serialport/stream

To help you get started, we’ve selected a few @serialport/stream examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github serialport / node-serialport / packages / terminal / lib / index.js View on Github external
const listPorts = async () => {
  const ports = await SerialPort.list()
  for (const port of ports) {
    console.log(`${port.path}\t${port.pnpId || ''}\t${port.manufacturer || ''}`)
  }
}

@serialport/stream

The serialport stream interface. This package requires bindings to work.

MIT
Latest version published 1 year ago

Package Health Score

81 / 100
Full package analysis

Similar packages