1.1.3 • Published 2 years ago

udprint v1.1.3

Weekly downloads
7
License
MIT
Repository
github
Last release
2 years ago

udprint: UDP Logger npm.io npm.io

💡 Log incoming messages on a user datagram protocol (UDP) socket

$ npx udprint 8125

interactive

$ udprint -i

npm.io

Full params

$ udprint 8125 127.0.0.1
           ↑    ↑
          port address

With explicit params you can switch the order

$ udprint --port 8125 --address 127.0.0.1
$ udprint --address 127.0.0.1 --port 8125 --encoding utf8

Params support shorthand

$ udprint -p 8125 -h 127.0.0.1 -e utf8

Get help (full feature list)

$ 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

$ udprint -f 127.0.0.1:2003

Clean some of the data from the message, or complete lines:

$ udprint -c '^.*password.*$\n'

Silent mode, in case we're just forwarding messages and don't want to see the output

$ udprint -s

Test

echo "This is some data" > /dev/udp/127.0.0.1/8125
1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.0

4 years ago