title: Unable to import URL class in Nodejs Typescript app
body: <p>I am trying to import the URL class from the nodejs api so I can parse urls and retrieve their origin, hostname, and paths.</p>
  
  <p>I am trying to do it by typing
  <code>
  import * as URL from "url";
  </code></p>
  
  <p>and I have also tried
  <code>
  import { URL } from "url";
  </code></p>
  
  <p>and I cannot seem to get this to work for me. Any help would be greatly appreciated.</p>
  
  <p>The way I am trying to use this is as such</p>
  
  <p><code>
  var site = new URL("http://www.website.com");
  </code></p>
  
  <p>And it is throwing an error because it states that URL is not a constructor</p>