Source

snoop /

Filename Size Date modified Message
lib
1.0 KB
552 B
370 B

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