You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
234 B
Markdown

8 months ago
# @serialport/binding-mock
```ts
import { MockBinding } from '@serialport/binding-mock'
const MockBinding = new MockBinding()
MockBinding.createPort('/dev/fakePort', { echo: true })
await MockBinding.write(Buffer.from('data')))
```