3.0.3 • Published 2 months ago

parse-url-cli v3.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
2 months ago

parse-url-cli

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

npm version ISC-licensed minimum Node.js version chat with me on Gitter support me via GitHub Sponsors

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

Installing

npm install -g parse-url-cli

Or use npx. ✨

Usage

Usage:
    parse-url <url> [component]
Options:
	--json  -j  Output JSON instead of a pretty represenation.
Examples:
    parse-url 'https://example.org:2000/hello/world?foo=bar#baz' host
    parse-url --json 'example.org:2000'

Pro tip: Use query-string-cli in conjunction with parse-url-cli.

Related

Contributing

If you have a question or have difficulties using parse-url-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.

3.0.3

2 months ago

3.0.2

2 months ago

3.0.1

9 months ago

3.0.0

9 months ago

2.0.1

9 months ago

1.0.1

4 years ago

2.0.0

4 years ago

1.0.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago