Function getURLParams

  • Get the parameters and values from the URL and return them as a parameter object. returns empty object if unresolvable path. this parameter is ignored if the parameter cannot be parsed.

    Since

    v0.0.1

    Returns

    Parameter - URL Parameter

    Example

    // Get param
    const url = 'http://example.com?name=value&key=asd'
    console.log(
    getURLParams(url)
    )
    => { name: 'value', key: 'asd' }

    Parameters

    • url: string

      URL

    Returns Record<string, string>