title: Node.js archiver Need syntax for excluding file types via glob
body: <p>Using archiver.js (for Node.js), I need to exclude images from a recursive (multi-subdir) archive. Here is my code:</p>
  <pre><code>const zip = archiver('zip', { zlib: { level: 9 } });
  const output = await fs.createWriteStream(`backup/${fileName}.zip`);
  res.setHeader('Content-disposition', `attachment; filename=${fileName}.zip`);
  res.setHeader('Content-type', 'application/download');
  output.on('close', function () {
    res.download(`backup/${fileName}.zip`, `${fileName}.zip`);
  });
  output.on('end', function () {
    res.download(`backup/${fileName}.zip`, `${fileName}.zip`);
  });
  zip.pipe(output);
  zip.glob('**/*',
    {
      cwd: 'user_uploads',
      ignore: ['*.jpg', '*.png', '*.webp', '*.bmp'],
    },
    {});
  zip.finalize();
  </code></pre>
  <p>The problem is that it did not exclude the ignore files. How can I correct the syntax?</p>