{"id":15062510,"url":"https://github.com/afeiship/next-loop-execute","last_synced_at":"2026-02-07T05:30:59.777Z","repository":{"id":57122762,"uuid":"277977266","full_name":"afeiship/next-loop-execute","owner":"afeiship","description":"Loop execute for next.","archived":false,"fork":false,"pushed_at":"2024-12-04T08:11:16.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-02T07:54:25.032Z","etag":null,"topics":["action","execute","fetch","loop","next"],"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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-08T03:10:43.000Z","updated_at":"2024-12-04T08:11:19.000Z","dependencies_parsed_at":"2024-12-25T22:32:24.790Z","dependency_job_id":"804f978b-7fe7-48e9-9956-12de6598cfb7","html_url":"https://github.com/afeiship/next-loop-execute","commit_stats":{"total_commits":31,"total_committers":1,"mean_commits":31.0,"dds":0.0,"last_synced_commit":"c98af7ad750ef411fc251913499c682760ea6443"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/next-loop-execute","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-loop-execute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-loop-execute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-loop-execute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-loop-execute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/next-loop-execute/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-loop-execute/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29187171,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T05:07:31.176Z","status":"ssl_error","status_checked_at":"2026-02-07T05:06:15.227Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["action","execute","fetch","loop","next"],"created_at":"2024-09-24T23:41:50.378Z","updated_at":"2026-02-07T05:30:59.762Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# next-loop-execute\n\u003e Loop execute for next.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```bash\nnpm install -S @jswork/next-loop-execute\n```\n\n## usage\n```js\nimport '@jswork/next-loop-execute';\n\nconst fetchApi = function ({ count }) {\n  return fetch('https://api.github.com/users/afeiship').then(res=\u003eres.json());\n}\n\n// loop 3 times:\nnx.loopExecute({\n  interval: 200,\n  timeout: 10 * 1000,\n  interrupt: (res)=\u003e{\n    return manualInterruptFlag;\n  },\n  callback: (data) =\u003e {\n    console.log(data);\n    return fetch('https://api.github.com/users/afeiship').then((res) =\u003e res.json());\n  },\n  done: (res) =\u003e {\n    return res.data.status === 'FINISHED';\n  }\n}).then((res) =\u003e {\n  console.log('DONE:', res);\n})\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/next-loop-execute/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/next-loop-execute\n[version-url]: https://npmjs.org/package/@jswork/next-loop-execute\n\n[license-image]: https://img.shields.io/npm/l/@jswork/next-loop-execute\n[license-url]: https://github.com/afeiship/next-loop-execute/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-loop-execute\n[size-url]: https://github.com/afeiship/next-loop-execute/blob/master/dist/next-loop-execute.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/next-loop-execute\n[download-url]: https://www.npmjs.com/package/@jswork/next-loop-execute\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-loop-execute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fnext-loop-execute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-loop-execute/lists"}