@serialport/binding-mock
v10.2.2
Published
The mock serialport bindings
Downloads
344,171
Readme
@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')))