title: Is there a replacement for url.resolve for creating URLs in Node?
body: <p>I read on <a href="https://stackoverflow.com/questions/16301503/can-i-use-requirepath-join-to-safely-concatenate-urls">this post</a> that you can concatenate URLs using url.resolve:</p>
  <pre><code>url.resolve('http://example.com/', 'image.jpg')    // 'http://example.com/image.jpg'
  </code></pre>
  <p>But upon reading the <a href="https://nodejs.org/api/url.html#url_url_resolve_from_to" rel="noreferrer">documentation</a> I see that this is now deprecated.  Is there a replacement for url.resolve?</p>