Socket
Socket
Sign inDemoInstall

parse-url-cli

Package Overview
Dependencies
4
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    parse-url-cli

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


Version published
Weekly downloads
2.2K
decreased by-0.05%
Maintainers
1
Install size
373 kB
Created
Weekly downloads
 

Readme

Source

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.

  • 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.
  • whatwg-url – An implementation of the WHATWG URL Standard in JavaScript

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.

Keywords

FAQs

Last updated on 16 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc