# @serialport/binding-mock

> The mock serialport bindings

Latest version **10.2.2** (published 2022-02-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @serialport/binding-mock
pnpm add @serialport/binding-mock
yarn add @serialport/binding-mock
bun add @serialport/binding-mock
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 10.2.2 |
| Published | 2022-02-05 |
| First published | 2018-08-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=12.0.0 |
| Dependencies | 2 |
| Unpacked size | 24.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | serialport-release-bot, reconbot, hipsterbrown |
| Keywords | serialport-binding, debug |

## Links

- npm: https://www.npmjs.com/package/@serialport/binding-mock
- Repository: https://github.com/serialport/binding-mock
- Issues: https://github.com/serialport/binding-mock/issues
- npm.io page: https://npm.io/package/@serialport/binding-mock

## Dependencies (2)

- [debug](https://npm.io/package/debug.md) ^4.3.3
- [@serialport/bindings-interface](https://npm.io/package/@serialport/bindings-interface.md) ^1.2.1

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 10.2.2 (latest) — 2022-02-05
- 10.2.1 (beta) — 2022-02-03
- 10.2.0 — 2022-02-03
- 10.1.0 — 2022-01-23
- 10.0.1 — 2021-12-25
- 10.0.0 — 2021-12-11
- 9.2.4 — 2021-09-28
- 9.2.3 — 2021-09-24
- 9.0.7 — 2021-02-22
- 9.0.2 — 2020-10-16
- 9.0.1 — 2020-08-08
- 9.0.0 — 2020-05-10
- 8.0.6 — 2019-12-25
- 8.0.4 — 2019-10-27
- 8.0.3 — 2019-10-03
- … 7 more at https://npm.io/package/@serialport/binding-mock/versions

## README

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

---
_Source: https://npm.io/package/@serialport/binding-mock · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
