W3cubDocs

/Nushell

from url for formats

Parse url-encoded string as a record.

Signature

> from url {flags}

Input/output types:

input output
string record

Examples

Convert url encoded string into a record

>'bread=baguette&cheese=comt%C3%A9&meat=ham&fat=butter'|from url
╭────────┬──────────╮
breadbaguette
cheesecomté
meatham
fatbutter
╰────────┴──────────╯

Tips: Command from url was not included in the official binaries by default, you have to build it with --features=extra flag

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