0.3.6 • Published 10 years ago
dir-each v0.3.6
dir-each
higher order functions for iterating over files
Getting Started
With npm
$ npm install dir-each --save
then in your app:
var each = require('dir-each')
API
each(dir:String, fn:Function)
iterate over each file in dir
and apply fn
var files = 0
each(process.env.HOME, function(path){
console.log(path)
files++
}).read(function(){
console.log('you own %d files', files)
})
Running the tests
$ npm install
$ make test