Skip to content

serialport/binding-mock

Repository files navigation

@serialport/binding-mock

import { MockBinding } from '@serialport/binding-mock'
const MockBinding = new MockBinding()

MockBinding.createPort('/dev/fakePort', { echo: true })
await MockBinding.write(Buffer.from('data')))