$ gnpm install iterators
Iterate over collections in sync or async
var iterators = require("iterators")
, map = iterators.map
, fs = require("fs")
, readFile = fs.readFile
map({
"foo": "test/foo.js"
, "bar": "test/bar.js"
}, readFile, function (err, files) {
// files.foo, files.bar
})
There are a few minor issues with the iterators on Array.prototype and alternatives provided by underscore / async.
This library fixes the following nitpicks:
npm install composite
make test
Copyright 2013 - present © cnpmjs.org | Home |