{"id":15743677,"url":"https://github.com/doowb/iterator-async","last_synced_at":"2025-03-13T10:30:47.523Z","repository":{"id":33728227,"uuid":"37382525","full_name":"doowb/iterator-async","owner":"doowb","description":"Iterate over a stack of async functions.","archived":false,"fork":false,"pushed_at":"2015-10-16T03:03:52.000Z","size":556,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-01T22:09:21.573Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doowb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-13T18:15:07.000Z","updated_at":"2021-04-12T22:07:20.000Z","dependencies_parsed_at":"2022-09-18T12:31:49.496Z","dependency_job_id":null,"html_url":"https://github.com/doowb/iterator-async","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fiterator-async","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fiterator-async/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fiterator-async/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fiterator-async/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doowb","download_url":"https://codeload.github.com/doowb/iterator-async/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221360668,"owners_count":16805033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-04T03:20:59.361Z","updated_at":"2024-10-24T23:21:27.360Z","avatar_url":"https://github.com/doowb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iterator-async [![NPM version](https://badge.fury.io/js/iterator-async.svg)](http://badge.fury.io/js/iterator-async)  [![Build Status](https://travis-ci.org/doowb/iterator-async.svg)](https://travis-ci.org/doowb/iterator-async)\n\n\u003e Iterate over a stack of async functions.\n\nThis module is intended to be used with [loader-cache](https://github.com/jonschlinkert/loader-cache)but may be used by itself or in other modules.\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i iterator-async --save\n```\n\n## Usage\n\n```js\nvar iterator = require('iterator-async');\n```\n\n## API\n\n\u003c!-- add a path or glob pattern for files with code comments to use for docs  --\u003e\n\n### [iterator](index.js#L20)\n\nIterate over a stack of async functions passing the results of\neach function to the next function in the stack.\n\n**Params**\n\n* `stack` **{Array}**: Array of functions to call.\n* `returns` **{Function}**: Returns a function that will iterator over the given stack of functions.\n\n```js\nvar fs = require('fs');\nvar iterator = require('iterator-async');\nvar stack = [\n  function (fp, next) { return fs.readFile(fp, 'utf8', next); },\n  function (contents, next) { return next(null, JSON.parse(contents)); }\n];\nvar readJSON = iterator(stack);\nreadJSON('./package.json', function (err, pkg) {\n  if (err) console.error(err);\n  console.log(pkg);\n});\n```\n\n## Related projects\n\n\u003c!-- add an array of related projects, then un-escape the helper --\u003e\n\n* [async](https://github.com/caolan/async#readme): Higher-order functions and common patterns for asynchronous code\n* [iterator-promise](https://github.com/doowb/iterator-promise): Iterator over a stack of functions.\n* [iterator-streams](https://github.com/doowb/iterator-streams): Iterator over a stack of functions.\n* [iterator-sync](https://github.com/doowb/iterator-sync): Iterator over a stack of functions.\n* [loader-cache](https://github.com/jonschlinkert/loader-cache): Register loader functions that dynamically read, parse or otherwise transform file contents when the name… [more](https://github.com/jonschlinkert/loader-cache)\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d \u0026\u0026 npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/doowb/iterator-async/issues/new)\n\n## Author\n\n**Brian Woodward**\n\n+ [github/doowb](https://github.com/doowb)\n+ [twitter/doowb](http://twitter.com/doowb)\n\n## License\n\nCopyright © 2015 [Brian Woodward](https://github.com/doowb)\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on June 17, 2015._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoowb%2Fiterator-async","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoowb%2Fiterator-async","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoowb%2Fiterator-async/lists"}