title: Using blob in expressjs
body: <p>I have a project in which i have to provide the user with a pdf generated using pdfkit and allowing users to download the same using blob. I am getting an error on doing so. Any help would be appreciated.
  error-</p>
  
  <pre><code>TypeError: Blob is not a function
  at BlobStream.toBlob (C:\Users\ws\node_modules\blob-stream\index.js:33:18)
  
  Code Snippet:
  var doc = new report();
  var blobStream = require('blob-stream');
  var stream = doc.pipe(blobStream());
  doc.text('And here is some wrapped text...', 100, 300)
    .font('Times-Roman', 13)
    .moveDown()
    .text('lorem', {
       width: 412,
       align: 'justify',
       indent: 30,
       columns: 2,
       height: 300,
       ellipsis: true
  });
  
  doc.end();
  stream.on('finish',function(){
  blob = stream.toBlob('Blob/pdf');
  
  });
  </code></pre>