Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/derhuerst/url-parser-cli
Parse a URL, get one or all components pretty-printed or as JSON.
https://github.com/derhuerst/url-parser-cli
cli command-line url
Last synced: 5 days ago
JSON representation
Parse a URL, get one or all components pretty-printed or as JSON.
- Host: GitHub
- URL: https://github.com/derhuerst/url-parser-cli
- Owner: derhuerst
- License: isc
- Created: 2018-03-27T00:24:43.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-03-16T14:39:34.000Z (8 months ago)
- Last Synced: 2024-05-16T17:03:59.116Z (6 months ago)
- Topics: cli, command-line, url
- Language: Rust
- Homepage:
- Size: 53.7 KB
- Stars: 7
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# url-parser-cli
**Parse a URL, get one or all components pretty-printed or as JSON.** Uses [`url`](https://docs.rs/url/) underneath.
[![crates.io version](https://img.shields.io/crates/v/url_parser_cli.svg)](https://crates.io/crates/url_parser_cli)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/url-parser-cli.svg)
[![chat on gitter](https://badges.gitter.im/derhuerst.svg)](https://gitter.im/derhuerst)
[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst)*Note:* I'm a Rust beginner, so the code might be unelegant. 🙈
*Note:* This utility has been rewritten in Rust, checkout [url-parser-cli](https://github.com/derhuerst/url-parser-cli).
## Installing
```shell
cargo install url_parser_cli
```You can also download a binary from the [releases page](https://github.com/derhuerst/chunked-transfer-cli/releases).
## Usage
```txt
Parse a URL, get one or all components pretty-printed or as JSON.Usage: url_parser_cli [OPTIONS] [BASE_URL]
Arguments:
URL to parse
[BASE_URL] base URL to parse fromOptions:
-j, --json print output as JSON
-p, --pretty print multi-line output
-h, --help Print help
-V, --version Print version
```## Related
- [curl's `trurl`](https://github.com/curl/trurl) – Command line tool for URL parsing and manipulation.
- [`url-decode-encode-cli`](https://github.com/derhuerst/url-decode-encode-cli) – Command line utility for URL decoding & encoding.
- [`query-string-cli`](https://github.com/derhuerst/query-string-cli) – Decode & encode URL query strings in the command line.
- [`url`](https://docs.rs/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](https://github.com/derhuerst/url-parser-cli/issues).