1.0.3 • Published 9 years ago

everyfile v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

everyfile

Recurse through a directory structure and do stuff with every file!


The callback is passed three arguments: the current file's name, relative path, and stats object.

Asynchronous

var every = require('everyfile');

every.async('.', function (filename, pathname, filestats) {

  // do stuff ...
  console.log('%s: %s/%s', "Async found", pathname, filename);

});

Synchronous

var files = every.sync('.');
console.log(files);

or

every.sync('.', function (filename, pathname, filestats) {

  // other stuff ...
  console.log('%s: %s/%s', "Sync found", pathname, filename);

});

Feedback, tests and pull requests are welcomed.

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago