Jaguar is a simple tool for working with socket connections. You can send, listen and ping a port using your terminal.
You can install using homebrew:
$ brew tap leozz37/jaguar
$ brew install jaguar
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
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"
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"
To ping a socket connection, run the following command:
$ jaguar -p 3000
The -a
flag is optional, ping is the default action of Jaguar.
Made with โค๏ธ by leozz37!