Nushell
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
GitHub
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
GitHub
  • Categories

    • Bits
    • Bytes
    • Chart
    • Conversions
    • Core
    • Database
    • Dataframe
    • Dataframe Or Lazyframe
    • Date
    • Debug
    • Default
    • Env
    • Experimental
    • Expression
    • Filesystem
    • Filters
    • Formats
    • Generators
    • Hash
    • History
    • Lazyframe
    • Math
    • Misc
    • Network
    • Path
    • Platform
    • Plugin
    • Prompt
    • Random
    • Removed
    • Shells
    • Strings
    • System
    • Viewers

url parse for network

Parses a url.

Signature

> url parse {flags} ...rest

Parameters

  • ...rest: Optionally operate by cell path.

Input/output types:

inputoutput
recordrecord
stringrecord
tabletable

Examples

Parses a url

> 'http://user123:pass567@www.example.com:8081/foo/bar?param1=section&p2=&f[name]=vldc&f[no]=42#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&f[no]=42 │
│ fragment │ hello                                    │
│          │ ╭───┬─────────┬─────────╮                │
│ params   │ │ # │   key   │  value  │                │
│          │ ├───┼─────────┼─────────┤                │
│          │ │ 0 │ param1  │ section │                │
│          │ │ 1 │ p2      │         │                │
│          │ │ 2 │ f[name] │ vldc    │                │
│          │ │ 3 │ f[no]   │ 42      │                │
│          │ ╰───┴─────────┴─────────╯                │
╰──────────┴──────────────────────────────────────────╯