title: How to send url with hash to nodejs
body: <p>How do I send URL with hash to nodejs?</p>
  <p>When I try to send a URL with hash in it, it doesn't work, but with <code>?</code> it works.</p>
  <pre class="lang-js prettyprint-override"><code>const url = require('url');
  const qs = require('querystring');
  const http = require('http');
      
  http.createServer(server).listen(1337, 'hostname');
  
  function server(req, res) {
      res.writeHead(200, {'Content-Type': 'text/plain'});
      res.write(req.url);
      
      var currentURL = url.parse(req.url, true);
      console.log(currentURL);
      res.end('\nHello World\n');
  }
      
  console.log('Server running at http://127.0.0.1:1337/');
  </code></pre>
  <p>Use case: Facebook access_token URL format is something similar to above</p>