Simple file finder for node (sync + async).

npm install snoop
1 downloads in the last day
5 downloads in the last week
9 downloads in the last month


Snoop is an simple file finder for Node (sync + async).


var snoop = require('snoop');
var criteria = snoop().files().match(/\.zip$/).depth(3);

// Sync mode.
var files = criteria.find('/path/to/directory');

// Async mode.
criteria.find('/path/to/directory', function (files) {
    // do somthing with array of files.
npm loves you