url parse
for network> url parse {flags} ...rest
...rest
: optionally operate by cell pathinput | output |
---|---|
record | record |
string | record |
table | table |
Parses a url
>'http://user123:[email protected]:8081/foo/bar?param1=section&p2=&f[name]=vldc#hello'|url parse
╭──────────┬─────────────────────────────────╮
│scheme│http│
│username│user123│
│password│pass567│
│host│www.example.com│
│port│8081│
│path│/foo/bar│
│query│param1=section&p2=&f[name]=vldc│
│fragment│hello│
││╭─────────┬─────────╮│
│params││param1│section││
│││p2│││
│││f[name] │vldc││
││╰─────────┴─────────╯│
╰──────────┴─────────────────────────────────╯
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/url_parse.html