W3cubDocs

/Nushell

url parse for network

Parses a url.

Signature

> url parse {flags} ...rest

Parameters

  • ...rest: optionally operate by cell path

Input/output types:

input output
record record
string record
table table

Examples

Parses a url

>'http://user123:[email protected]:8081/foo/bar?param1=section&p2=&f[name]=vldc#hello'|url parse
╭──────────┬─────────────────────────────────╮
schemehttp
usernameuser123
passwordpass567
hostwww.example.com
port8081
path/foo/bar
queryparam1=section&p2=&f[name]=vldc
fragmenthello
╭─────────┬─────────╮
paramsparam1section
p2
f[name] vldc
╰─────────┴─────────╯
╰──────────┴─────────────────────────────────╯

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/url_parse.html