• join url path

    Parameters

    • base: string | URL

      (string | URL): url string or URL

    • Rest ...paths: string[]

      (string | URL): relative paths

    Returns string

    joined raw url

    Example


    import * as url from 'url'

    const base = url.parse('https://xxx.com')
    url.join(base, '/hello')