title: How to get full URL in Node.js?
body: <p>I have a url <code>https://twitter.com/Javeria85685955/status/1059335612346650624</code>
  I want to get full url in Node.js on runtime. I am using <code>puppeteer</code> scraping.</p>
  
  <p><strong>My Code is</strong>:</p>
  
  <pre><code>const url = require('url');
  const myURL = url.parse(req.url, true);
  console.log('This is a full URL: ' + JSON.stringify(myURL))
  </code></pre>
  
  <p><strong>It gives me output like</strong>:</p>
  
  <p>This is a full URL: </p>
  
  <pre><code>{
      "protocol": null,
      "slashes": null,
      "auth": null,
      "host": null,
      "port": null,
      "hostname": null,
      "hash": null,
      "search": null,
      "query": {},
      "pathname": "/",
      "path": "/",
      "href": "/"
  }
  </code></pre>
  
  <p><strong>But Required Output I need</strong>:</p>
  
  <p><a href="https://twitter.com/Javeria85685955/status/1059335612346650624" rel="nofollow noreferrer">https://twitter.com/Javeria85685955/status/1059335612346650624</a></p>