NodeJS library with file query features

I'm searching for a library that has a query feature. So lets say I want to get all the JS files in a certain directory in a project. I could do something like

filesystem.query({
    paths:[{
        path:"c:/path/to/dir",
        recursive:true
    }],
    types:[".js"],
    excludes:["test.js"]
},successFn,failFn);

Does any library have this feature?

Using fs.readdir

var fs = require('fs');
fs.readdir('.', function (error, files)
{
    files.filter(function (fileName)
    {
        return /.*.js$/.test(fileName);
    }).forEach(yourfunc);
});

Using glob

require("glob").glob("*.js", function (er, files) { ... });

There are a few modules with those kind of filtering possibilities: