Creates a querystring from the specified data and returns it. The method can take additional options:
interfaceFromQueryStringOptions { /** * If false, then the passed string won't be decoded by using `decodeURIComponent` * @default`true` */ decode?: boolean;
/** * If false, then all parsed values won't be converted from a string * * @default`true` * * @example * ```js * // {foo: '1'} * fromQueryString('foo=1', {convert: false}); * ``` */ convert?: boolean;
Creates a querystring from the specified data and returns it. The method can take additional options:
interfaceToQueryStringOptions { /** * If false, then the result string won't be encoded by using `encodeURIComponent` * @default`true` */ encode?: boolean;
core/url
This module provides a bunch of functions to work with URL strings, such as parsing/serializing, concatenating groups of URLs to one, etc.
concatURLs
Concatenates the specified parts of URL-s with correctly arranging of slashes and returns a new string.
Parsing/Serialization
fromQueryString
Creates a querystring from the specified data and returns it. The method can take additional options:
toQueryString
Creates a querystring from the specified data and returns it. The method can take additional options: