Skip to content

Latest commit

History

History
82 lines (53 loc) 路 2.36 KB

README.md

File metadata and controls

82 lines (53 loc) 路 2.36 KB

Jaguar 馃悊

CodeFactor Codacy Badge Build Documentation License: MIT

Jaguar is a simple tool for working with socket connections. You can send, listen and ping a port using your terminal.

Installing

You can install using homebrew:

$ brew tap leozz37/jaguar

$ brew install jaguar

Running

You can use the --help command to check all the options:

Argument Description Required Default
-l, --listen Listen to a socket port No False
-s, --send Send payload to a socket port No False
-a, --alive Ping a port No True
-p, --port Port to be interacted with Yes -
-h, --hostname Hostname to be interacted with No 127.0.0.1
-d, --data Payload to be sent No -

You can run it with cargo to install all its dependencies:

$ jaguar -p 3000

Listen

To listen to a socket connection, run the following command:

$ jaguar -l -p 3000

To listen to a custom hostname, use the -h flag:

$ jaguar -l -p 3000 -h "127.0.0.1"

Send

To send a payload to a socket connection, run the following command:

$ jaguar -s -p 3000 -d "Hello World"

To listen to a custom hostname, use the -h flag:

$ jaguar -s -p 3000 -d "Hello World" -h "127.0.0.1"

Ping

To ping a socket connection, run the following command:

$ jaguar -p 3000

The -a flag is optional, ping is the default action of Jaguar.

About

Made with 鉂わ笍 by leozz37!