# @abeai/pino-websocket

> A pino 'transport' for writing to a websocket

Latest version **0.2.1** (published 2021-11-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @abeai/pino-websocket
pnpm add @abeai/pino-websocket
yarn add @abeai/pino-websocket
bun add @abeai/pino-websocket
```

Provides the command `pino-websocket`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2021-11-04 |
| First published | 2019-03-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 21.1 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Kody Peterson |
| Maintainers | abe-ai, abeai-sam |

## Links

- npm: https://www.npmjs.com/package/@abeai/pino-websocket
- Repository: https://github.com/abeai/pino-websocket
- Homepage: https://github.com/abeai/pino-websocket#readme
- Issues: https://github.com/abeai/pino-websocket/issues
- npm.io page: https://npm.io/package/@abeai/pino-websocket

## Dependencies (8)

- [ws](https://npm.io/package/ws.md) 6.2.0
- [nopt](https://npm.io/package/nopt.md) 4.0.1
- [pump](https://npm.io/package/pump.md) ^3.0.0
- [split2](https://npm.io/package/split2.md) 3.1.0
- [backoff](https://npm.io/package/backoff.md) 2.5.0
- [through2](https://npm.io/package/through2.md) 3.0.1
- [linebyline](https://npm.io/package/linebyline.md) 1.3.0
- [async-exit-hook](https://npm.io/package/async-exit-hook.md) 2.0.1

## Recent versions

- 0.2.1 (latest) — 2021-11-04
- 0.2.0 — 2021-10-18
- 0.1.8-prerelease.3 — 2019-05-02
- 0.1.8-prerelease.2 — 2019-05-02
- 0.1.8-prerelease — 2019-05-02
- 0.1.7 — 2019-04-30
- 0.1.6 — 2019-04-03
- 0.1.5 — 2019-04-02
- 0.1.4 — 2019-03-28
- 0.1.3 — 2019-03-28
- 0.1.2 — 2019-03-19
- 0.1.1 — 2019-03-15
- 0.1.0 — 2019-03-15

## README

# pino-websocket

This module provides a "transport" for [pino][pino] that simply forwards
messages to a websocket socket server. The module can echo the received
logs or work silently.

You should install `pino-websocket` globally for ease of use:

```bash
$ npm install -g @abeai/pino-websocket
```

[pino-websocket]: https://www.npmjs.com/package/pino-websocket

## Usage

Given an application `foo` that logs via [pino][pino], and a webscoket server
that collects logs on port `5000` on IP `10.10.10.5`, you would use `pino-websocket`
like so:

```bash
$ node foo | pino-websocket -a 10.10.10.5 -p 5000
```

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