@serialport/binding-mock
TypeScript icon, indicating that this package has built-in type declarations

10.2.2 • Public • Published

@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')))

Package Sidebar

Install

npm i @serialport/binding-mock

Weekly Downloads

70,092

Version

10.2.2

License

MIT

Unpacked Size

25.2 kB

Total Files

7

Last publish

Collaborators

  • serialport-release-bot
  • reconbot
  • hipsterbrown