{"id":21521509,"url":"https://github.com/cjg125/async-eachify","last_synced_at":"2025-03-17T17:20:39.379Z","repository":{"id":57185537,"uuid":"86283470","full_name":"cjg125/async-eachify","owner":"cjg125","description":"async-eachify","archived":false,"fork":false,"pushed_at":"2017-03-27T08:28:18.000Z","size":195,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T16:53:46.208Z","etag":null,"topics":["async","async-foreach","each","foreach"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/async-eachify","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cjg125.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-27T02:38:39.000Z","updated_at":"2017-03-27T08:29:33.000Z","dependencies_parsed_at":"2022-09-06T04:02:18.802Z","dependency_job_id":null,"html_url":"https://github.com/cjg125/async-eachify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjg125%2Fasync-eachify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjg125%2Fasync-eachify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjg125%2Fasync-eachify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjg125%2Fasync-eachify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cjg125","download_url":"https://codeload.github.com/cjg125/async-eachify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244075622,"owners_count":20393980,"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":["async","async-foreach","each","foreach"],"created_at":"2024-11-24T01:07:24.761Z","updated_at":"2025-03-17T17:20:39.360Z","avatar_url":"https://github.com/cjg125.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# saync-eachify\n## 简介\n\n  \u003e 一个支持异步的迭代函数\n\n  ![image](https://github.com/cjg125/async-eachify/raw/master/preview.gif)\n\n```\n## 安装\n```html\n\u003cscript src=\"https://unpkg.com/async-eachify\"\u003e\u003c/script\u003e\n```\n```sh\nyarn add async-eachify\n```\n## API\n### 语法\n```js\neachify(Array, callback, options)\n```\n### *Array*\n\u003e 要迭代的数组\n### callback(loop, next)\n#### *loop*\n```js\n// ['a', 'b', 'c', 'd', 'e']\n{\n  index:0,\n  len:4,\n  value: 'a',\n  first: true,\n  last: false,\n}\n```\n#### *next*\n\u003e 通过调用 next 迭代\n\n### *options*\n#### options.async\n\u003e 是否异步迭代 默认值 false\n#### interval.async\n\u003e async 为 true 每次迭代的间隔时间\n\n## 高级应用\n\n[examples/middleware.js](https://github.com/cjg125/async-eachify/tree/master/examples/middleware.js)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjg125%2Fasync-eachify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcjg125%2Fasync-eachify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjg125%2Fasync-eachify/lists"}