title: node.js glob pattern for excluding multiple files
body: <p>I'm using the npm module <a href="https://github.com/isaacs/node-glob">node-glob</a>.</p>
  
  <p>This snippet returns recursively all files in the current working directory.</p>
  
  <pre><code>var glob = require('glob');
  glob('**/*', function(err, files) {
      console.log(files);
  });
  </code></pre>
  
  <p>sample output:</p>
  
  <pre><code>[ 'index.html', 'js', 'js/app.js', 'js/lib.js' ]
  </code></pre>
  
  <p>I want to exclude <strong>index.html</strong> and <strong>js/lib.js</strong>.
  I tried to exclude these files with negative pattern <strong>'!'</strong> but without luck.
  Is there a way to achieve this only by using a pattern?</p>