# udprint

> 💡 Log incoming messages on a UDP socket

Latest version **1.1.3** (published 2022-05-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install udprint
pnpm add udprint
yarn add udprint
bun add udprint
```

Provides the command `udprint`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2022-05-18 |
| First published | 2020-01-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=14.0.0 |
| Dependencies | 4 |
| Unpacked size | 12.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | omrilotan |
| Maintainers | omrilotan |
| Keywords | UDP, datagram, debugging, development, print, logger, debug, 💡 |

## Links

- npm: https://www.npmjs.com/package/udprint
- Repository: https://github.com/omrilotan/udprint
- Homepage: https://github.com/omrilotan/udprint#readme
- Issues: https://github.com/omrilotan/udprint/issues
- npm.io page: https://npm.io/package/udprint

## Dependencies (4)

- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [semver](https://npm.io/package/semver.md) ^7.3.7
- [inquirer](https://npm.io/package/inquirer.md) ^8.2.4
- [yargs-parser](https://npm.io/package/yargs-parser.md) ^21.0.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

- 1.1.3 (latest) — 2022-05-18
- 1.1.2 — 2022-05-18
- 1.1.1 — 2021-12-16
- 1.1.0 — 2021-10-20
- 1.0.5 — 2021-03-01
- 1.0.4 — 2020-11-25
- 1.0.3 — 2020-09-05
- 1.0.2 — 2020-09-05
- 1.0.1 — 2020-02-27
- 1.0.0 — 2020-02-26
- 0.0.0 — 2020-01-08

## README

# udprint: UDP Logger [![](https://img.shields.io/npm/v/udprint.svg?style=flat-square)](https://www.npmjs.com/package/udprint) ![](https://img.shields.io/github/workflow/status/omrilotan/udprint/Publish?style=flat-square)
## 💡 Log incoming messages on a user datagram protocol (UDP) socket

```
$ npx udprint 8125
```

## interactive
```bash
$ udprint -i
```

![](https://user-images.githubusercontent.com/516342/75452841-9f7f7000-597b-11ea-8c7f-f54c49a81265.gif)

Full params
```bash
$ udprint 8125 127.0.0.1
           ↑    ↑
          port address
```

With explicit params you can switch the order
```bash
$ udprint --port 8125 --address 127.0.0.1
$ udprint --address 127.0.0.1 --port 8125 --encoding utf8
```

Params support shorthand
```bash
$ udprint -p 8125 -h 127.0.0.1 -e utf8
```

Get help (full feature list)
```bash
$ udprint -h
```

Encoding can be one of the following:
- `utf8` (default)
- `ascii`
- `binary`
- `latin1`
- `ucs2` (alias of utf16le)
- `utf16le`
- `hex`
- `base64`

Forward traffic to another location
```bash
$ udprint -f 127.0.0.1:2003
```

Clean some of the data from the message, or complete lines:
```bash
$ udprint -c '^.*password.*$\n'
```

Silent mode, in case we're just forwarding messages and don't want to see the output
```bash
$ udprint -s
```

## Test
```bash
echo "This is some data" > /dev/udp/127.0.0.1/8125
```

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