{"_id":"async-it","_rev":"14-ae1379ec31977da12b7871597f5afdb4","name":"async-it","description":"Generic asynchronous iterators for node.js.","dist-tags":{"latest":"0.4.0"},"versions":{"0.1.0":{"name":"async-it","description":"Generic asynchronous iterators for node.js.","main":"index","version":"0.1.0","author":{"name":"Tobie Langel","email":"tobie.langel@gmail.com","url":"http://tobielangel.com"},"repository":{"type":"git","url":"http://github.com/tobie/async-it.git"},"licenses":[{"type":"MIT","url":"http://github.com/tobie/async-it/raw/master/LICENSE"}],"_id":"async-it@0.1.0","engines":{"node":"*"},"_nodeSupported":true,"dist":{"tarball":"https://registry.npmjs.org/async-it/-/async-it@0.1.0.tgz","shasum":"fc3fef14b1931522554e7ad9036b1e60b7274a7b","integrity":"sha512-QemqThdX+Oj/uezKN7p7lGCJ3504E0GyeGcmEL+Ml/fteubi7vvtg/vN3d134mjevie6Kcmuc0HqkfNnDdMFzQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDhbxpYg0XNcUzVgHYJasMfl6KyfHKwTis93V24Swn6lAiEAspaljISo68/CqkKze79Gpx6WMLDfEQgzNAuZDpucN1I="}]}},"0.2.0":{"name":"async-it","description":"Generic asynchronous iterators for node.js.","main":"index.js","version":"0.2.0","author":{"name":"Tobie Langel","email":"tobie.langel@gmail.com","url":"http://tobielangel.com"},"repository":{"type":"git","url":"git://github.com/tobie/async-it.git"},"licenses":[{"type":"MIT","url":"http://github.com/tobie/async-it/raw/master/LICENSE"}],"dependencies":{},"devDependencies":{},"_id":"async-it@0.2.0","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.6","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"031e667ab7053927c926912df26d90729367cd2e","tarball":"https://registry.npmjs.org/async-it/-/async-it-0.2.0.tgz","integrity":"sha512-9Go6OBVxKn19LwV+d4yNHgPA8HGWez61xwpsToe43f0EKIqT4S2I9nEeU/aIQ5B0byMxT5nP05Sx1GPiIEH9DA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIqiFhx7WIwnNLtddWKJxYs60YVpPgo+Npvr+4TsVX8AIgJqpdQ8iUKfMSoH9cHCY4gYRipSLKSHQArw1hUNCP/wg="}]},"scripts":{}},"0.3.0":{"name":"async-it","description":"Generic asynchronous iterators for node.js.","main":"index.js","version":"0.3.0","author":{"name":"Tobie Langel","email":"tobie.langel@gmail.com","url":"http://tobielangel.com"},"repository":{"type":"git","url":"git://github.com/tobie/async-it.git"},"licenses":[{"type":"MIT","url":"http://github.com/tobie/async-it/raw/master/LICENSE"}],"_id":"async-it@0.3.0","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.8","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"ba0402bad74b7a2fdc7aaed3b47c209e512b6e34","tarball":"https://registry.npmjs.org/async-it/-/async-it-0.3.0.tgz","integrity":"sha512-fRKgSivqcb8il8ZsOBO13G7ZOwumK5rjYGhyV/sb+/buSNSnp628/nfxqMODOKL5YuajRKeKrlpv4F/plDfPNQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCkkz5dyLfr0aUWZ741Fc9qEbTAS1k/0hD5AnYrHxgT7AIgQz2lBUaYjN6tNAAlS4v1iLwh/QMerGzGnw7eFDKOjX8="}]},"scripts":{},"maintainers":[{"name":"tobie","email":"tobie.langel@gmail.com"}]},"0.3.1":{"name":"async-it","description":"Generic asynchronous iterators for node.js.","main":"index.js","version":"0.3.1","author":{"name":"Tobie Langel","email":"tobie.langel@gmail.com","url":"http://tobielangel.com"},"repository":{"type":"git","url":"git://github.com/tobie/async-it.git"},"licenses":[{"type":"MIT","url":"http://github.com/tobie/async-it/raw/master/LICENSE"}],"dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_id":"async-it@0.3.1","_engineSupported":true,"_npmVersion":"1.0.8","_nodeVersion":"v0.5.8-pre","_defaultsLoaded":true,"dist":{"shasum":"c1ca5bb8cffcfd2927a5eb02821eb04ed071cf65","tarball":"https://registry.npmjs.org/async-it/-/async-it-0.3.1.tgz","integrity":"sha512-V4ih2g+1BwURH9UFwW+ktE7fdmWPng8AmKOMTSGcUz9h5YnUGb4iVCHnUzfw+s8qiY2LQ8PkFhSTrGDODaZLsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdC3+XqYjGLHMFzS3wJKf9OG2Akg+NLKSnwgUR2qgbOwIgZERdNG2hN8IUHsnw5RjE3fyKEFoyL8dyubuE5+c6GLA="}]},"scripts":{},"maintainers":[{"name":"tobie","email":"tobie.langel@gmail.com"}]},"0.4.0":{"name":"async-it","description":"Generic asynchronous iterators for node.js.","main":"index.js","version":"0.4.0","author":{"name":"Tobie Langel","email":"tobie.langel@gmail.com","url":"http://tobielangel.com"},"repository":{"type":"git","url":"git://github.com/tobie/async-it.git"},"licenses":[{"type":"MIT","url":"http://github.com/tobie/async-it/raw/master/LICENSE"}],"dependencies":{},"devDependencies":{"mocha":"*"},"engines":{"node":"*"},"scripts":{"test":"mocha -u tdd ./test/*.js"},"gitHead":"f7b751ecbd39ef714ac771fcbac02b5fdec5e2f7","bugs":{"url":"https://github.com/tobie/async-it/issues"},"homepage":"https://github.com/tobie/async-it","_id":"async-it@0.4.0","_shasum":"54233b8598125b3db59d6ae601accda0c3bce908","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"tobie","email":"tobie.langel@gmail.com"},"maintainers":[{"name":"tobie","email":"tobie.langel@gmail.com"}],"dist":{"shasum":"54233b8598125b3db59d6ae601accda0c3bce908","tarball":"https://registry.npmjs.org/async-it/-/async-it-0.4.0.tgz","integrity":"sha512-LIPX/joG18c0BcuH2pfR/A7jzDUliqEK7HqLgr89ZlDDz++IEEwvY9guy7Y8BBZLR7GhMjSSS7EObW8Zwwvteg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHig73i2Uj/bklBPZ7IFvfZWTLbySmTQr6IDhXKXkvpGAiB9fD1oYQhPPuBjkPH1hfPXzG5YtyqVsKaPce7pHCyctg=="}]}}},"maintainers":[{"name":"tobie","email":"tobie.langel@gmail.com"}],"author":{"name":"Tobie Langel","email":"tobie.langel@gmail.com","url":"http://tobielangel.com"},"repository":{"type":"git","url":"git://github.com/tobie/async-it.git"},"time":{"modified":"2022-06-13T03:37:07.822Z","created":"2011-05-31T09:09:07.558Z","0.1.0":"2011-05-31T09:09:07.558Z","0.2.0":"2011-05-31T09:09:07.558Z","0.3.0":"2011-08-07T08:27:32.892Z","0.3.1":"2011-10-09T12:07:40.842Z","0.4.0":"2014-09-08T21:57:59.826Z"},"readme":"async-it\n========\n\n`async-it` is a series of **generic asynchronous parallel** and **serial iterators**\nfor node.js.\n\nThese iterators are based on the ES5 additions to `Array` (`forEach`, `map`,\n`filter`, `some`, `any`, `reduce` and `reduceRight`). `reduce` and `reduceRight`\nare available in serial mode only.\n\nIndexes are only passed to the callback in the aptly-named `forEachWithIndex` for fear of\ncrowding the callback with little used arguments.\n\nLike their sync counterparts, these iterators work on any object which has a numeric\nlength property.\n\nUsage\n-----\n    \nSee `examples/example.js`:\n\n    var path = require('path'),\n        fs = require('fs'),\n        asyncItParallel = require('async-it').parallel;\n\n    var files = ['foo.txt', 'bar.txt', 'does-not-exist.txt', 'baz.txt'];\n    files = files.map(function(file) {\n      return path.join(__dirname, 'files', file);\n    });\n\n    // select existing files\n    asyncItParallel.filter(files, function(file, cont) {\n      fs.exists(file, function(exists) {\n        cont(null, exists);\n      });\n    }, function(err, existingFiles) {\n      // collect their content\n      asyncItParallel.map(existingFiles, function(file, cont) {\n        fs.readFile(file, 'utf8', cont);\n      }, function(err, content) {\n        // output the ordered content to the console\n        console.log(content.join('\\n'));\n      });\n    });\n\n    // Hi, I'm foo!\n    // Hello World, this is bar.\n    // I'm baz.\n\nLicense\n-------\n\nLicensed under the [MIT license][1], Copyright 2010 Tobie Langel.\n\n[1]: http://github.com/tobie/async-it/raw/master/LICENSE\n\n","homepage":"https://github.com/tobie/async-it","bugs":{"url":"https://github.com/tobie/async-it/issues"},"readmeFilename":"README.markdown"}