Overview

Snoop

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

Example

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.
});