title: Is any tiny library in javascript (for node) for ignore files
body: <p>I would like implement a ingnore file in my node script like .ignore</p>
  
  <p>exemple .projectignore:</p>
  
  <pre><code>file*
  dir/*
  dir/**/dir
  *.swp
  </code></pre>
  
  <p>and with a with a javascript function</p>
  
  <pre><code>fs.readdir("/", function(err, files){
    if(!FileLib.isIgnored(files){
      ...
    }
  });
  </code></pre>
  
  <p>Is any library can do this or how i can implement it easily ?</p>