Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const listPorts = async () => {
const ports = await SerialPort.list()
for (const port of ports) {
console.log(`${port.path}\t${port.pnpId || ''}\t${port.manufacturer || ''}`)
}
}