higher order function for iterating over files
higher order functions for iterating over files
$ npm install dir-each --save
then in your app:
var each = require'dir-each'var series = require'dir-each/series'
both functions also come in variations which include symlinked files. To access them use
iterate over each file in
dir and apply
each fully understands the semantics of Results so you can pass them as arguments and return them from
fn with the desired effect.
var files = 0eachprocessenvHOMEconsole.logpathfiles++readconsole.log'you own %d files' files
as above but waits on results between iterations
$ npm install$ make test