0.3.6 • Published 10 years ago

dir-each v0.3.6

Weekly downloads
37
License
-
Repository
github
Last release
10 years ago

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
0.3.6

10 years ago

0.3.5

11 years ago

0.3.4

11 years ago

0.3.3

11 years ago

0.3.2

11 years ago

0.3.1

11 years ago

0.3.0

11 years ago

0.2.0

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago