#host-port #path-query #networking #security #rust

app rexturl

A simple tool to split urls in their protocol, host, port, path and query parts

7 releases

new 0.3.0 Apr 25, 2024
0.2.2 Sep 19, 2022
0.1.2 Sep 17, 2022

#2 in #host-port

MIT license

8KB
132 lines

rexturl

A simple tool to split urls in their protocol, host, port, path and query parts.

Install

cargo install rexturl

or clone the source code and run cargo build --release to build the binary.

Usage

cat [FILE WITH URLS] | rexturl [OPTIONS]
rexturl --help

rexturl (c) 2022 by Volker Schwaberow <volker@schwaberow.de>
A simple tool to split urls in their protocol, host, port, path and query parts.

Usage: rexturl [options] [url]
Options:
  --scheme     print the scheme
  --username   print the username
  --host       print the host
  --port       print the port
  --path       print the path
  --query      print the query
  --fragment   print the fragment
  --sort       sort the output
  --unique     remove duplicates from the output
  --json       output in json format
  --all        print all parts
  -h, --help   print this help

Contribution

If you want to contribute to this project, please feel free to do so. I am happy to accept pull requests. Any help is appreciated. If you have any questions, please feel free to contact me.

Dependencies

~2.6–4MB
~96K SLoC