url_parser_cli

Crates.iourl_parser_cli
lib.rsurl_parser_cli
version4.0.0
sourcesrc
created_at2023-08-17 16:33:22.155097
updated_at2023-08-17 16:33:22.155097
descriptionParse a URL, get one or all components pretty-printed or as JSON.
homepagehttps://github.com/derhuerst/url-parser-cli
repositoryhttps://github.com/derhuerst/url-parser-cli.git
max_upload_size
id947222
size25,566
Jannis R (derhuerst)

documentation

README

url-parser-cli

Parse a URL, get one or all components pretty-printed or as JSON. Uses url underneath.

crates.io version ISC-licensed chat on gitter support me on Patreon

Note: I'm a Rust beginner, so the code might be unelegant. 🙈

Note: This utility has been rewritten in Rust, checkout url-parser-cli.

Installing

cargo install chunked_transfer_cli

You can also download a binary from the releases page.

Usage

Parse a URL, get one or all components pretty-printed or as JSON.

Usage: url_parser_cli [OPTIONS] <URL> [BASE_URL]

Arguments:
  <URL>       URL to parse
  [BASE_URL]  base URL to parse <URL> from

Options:
  -j, --json     print output as JSON
  -p, --pretty   print multi-line output
  -h, --help     Print help
  -V, --version  Print version

Related

  • curl's trurl – Command line tool for URL parsing and manipulation.

  • url-decode-encode-cli – Command line utility for URL decoding & encoding.

  • query-string-cli – Decode & encode URL query strings in the command line.

  • url – An implementation of the WHATWG URL Standard.

Contributing

If you have a question or have difficulties using url-parser-cli, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.

Commit count: 30

cargo fmt