title: What is the difference between import crypto from 'crypto' vs just using crypto in Node?
body: <p>I want to use crypto to get a UUID in my new Node project. I found a solution to use crypto for that and I found out that crypto itself is a declared variable already without importing it. So both are possible:</p>
  <pre><code>import crypto from 'crypto'
  const mything = crypto
  </code></pre>
  <p>and also without the import just:</p>
  <pre><code>const mything = crypto
  </code></pre>
  <p>Is there a difference?</p>