title: How do I create a Blob in Node.js?
body: <p>I have tried to create a Blob in Node.js. First just this:</p>
  
  <pre><code>var b = new Blob(['hi', 'constructing', 'a', 'blob']);
  </code></pre>
  
  <p>This fails with <code>ReferenceError: Blob is not defined</code></p>
  
  <p>Then I tried with the <code>blob</code> module (the two lines of code is from the example for this module, see <a href="https://www.npmjs.com/package/blob" rel="noreferrer">https://www.npmjs.com/package/blob</a>):</p>
  
  <pre><code>var Blob = require('blob');
  var b = new Blob(['hi', 'constructing', 'a', 'blob']);
  </code></pre>
  
  <p>This fails with <code>TypeError: Blob is not a constructor</code></p>
  
  <p>How can I do it?</p>