{"id":20457956,"url":"https://github.com/greenpioneersolutions/serial-loop","last_synced_at":"2025-08-03T16:40:12.047Z","repository":{"id":57356685,"uuid":"63570984","full_name":"greenpioneersolutions/serial-loop","owner":"greenpioneersolutions","description":"Async serial loop","archived":false,"fork":false,"pushed_at":"2016-12-13T18:46:19.000Z","size":5,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-16T08:18:21.771Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/greenpioneersolutions.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":"2016-07-18T04:47:57.000Z","updated_at":"2018-10-24T04:44:55.000Z","dependencies_parsed_at":"2022-08-28T19:20:25.707Z","dependency_job_id":null,"html_url":"https://github.com/greenpioneersolutions/serial-loop","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/greenpioneersolutions%2Fserial-loop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenpioneersolutions%2Fserial-loop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenpioneersolutions%2Fserial-loop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenpioneersolutions%2Fserial-loop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greenpioneersolutions","download_url":"https://codeload.github.com/greenpioneersolutions/serial-loop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242013990,"owners_count":20057871,"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-11-15T12:09:56.628Z","updated_at":"2025-03-05T10:45:45.164Z","avatar_url":"https://github.com/greenpioneersolutions.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serial-loop\n\n[![npm][npm-image]][npm-url]\n[![downloads][downloads-image]][downloads-url]\n[![Dependency Status](https://david-dm.org/greenpioneersolutions/serial-loop.svg)](https://david-dm.org/greenpioneersolutions/serial-loop)\n[![devDependency Status](https://david-dm.org/greenpioneersolutions/serial-loop/dev-status.svg)](https://david-dm.org/greenpioneersolutions/serial-loop#info=devDependencies)\n[![npm-issues](https://img.shields.io/github/issues/greenpioneersolutions/serial-loop.svg)](https://github.com/greenpioneersolutions/serial-loop/issues)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)\n[![Build Status](https://travis-ci.org/greenpioneersolutions/serial-loop.svg?branch=master)](https://travis-ci.org/greenpioneersolutions/serial-loop)\n[![js-standard-style](https://nodei.co/npm/serial-loop.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/serial-loop.png?downloads=true\u0026downloadRank=true\u0026stars=true)\n\n[npm-image]: https://img.shields.io/npm/v/serial-loop.svg?style=flat\n[npm-url]: https://npmjs.org/package/serial-loop\n[downloads-image]: https://img.shields.io/npm/dm/serial-loop.svg?style=flat\n[downloads-url]: https://npmjs.org/package/serial-loop\n\n\n## Install\n\n```bash\n$ npm i -s serial-loop\n```\n\n## Usage\n\n```js\nvar loop = require('serial-loop')\n\nloop(10, each, function (error) {\n  console.log('done, error? ', error)\n});\n\nfunction each (next, i) {\n  setTimeout(function () {\n    console.log(i)\n    next()\n  }, 1000)\n}\n```\n\nWill output:\n\n```\n0\n1\n2\n3\n3\n4\n5\n6\n7\n8\n9\n```\n\n## Roadmap\n\n```javascript\n// 3.0 - Take over package, Update in es5 using standardjs\n// 4.0 - Update to es6 , make it dynamic to not need len.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreenpioneersolutions%2Fserial-loop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreenpioneersolutions%2Fserial-loop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreenpioneersolutions%2Fserial-loop/lists"}