{"id":18385292,"url":"https://github.com/wankdanker/node-dank-do-while","last_synced_at":"2025-04-07T00:31:52.578Z","repository":{"id":5000999,"uuid":"6159236","full_name":"wankdanker/node-dank-do-while","owner":"wankdanker","description":"An asynchronous do-while-like function for node.","archived":false,"fork":false,"pushed_at":"2024-05-28T18:28:50.000Z","size":90,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T09:32:37.958Z","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":"intridea/oauth2","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wankdanker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2012-10-10T15:08:27.000Z","updated_at":"2024-05-28T18:28:50.000Z","dependencies_parsed_at":"2024-06-18T22:54:16.121Z","dependency_job_id":"16ee0a86-371f-48e5-83b2-53b5f71fdfbc","html_url":"https://github.com/wankdanker/node-dank-do-while","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wankdanker%2Fnode-dank-do-while","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wankdanker%2Fnode-dank-do-while/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wankdanker%2Fnode-dank-do-while/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wankdanker%2Fnode-dank-do-while/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wankdanker","download_url":"https://codeload.github.com/wankdanker/node-dank-do-while/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247574088,"owners_count":20960495,"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-06T01:17:13.846Z","updated_at":"2025-04-07T00:31:52.323Z","avatar_url":"https://github.com/wankdanker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"dank-do-while\n---------------\n\nAn asynchronous do-while-like function for node\n\ninstall\n-------\n\n```bash\nnpm install dank-do-while\n```\n\nmethod\n------\n\n### doWhile(eachFunction, doneFunction, concurrency);\n\n**eachFunction** will be called once initially and then again\n  for each time that `next(truthy)` is called\n\n  Signature is `function(next)`\n\n**doneFunction** will be called once when `next(falsy)` is called\n\n**concurrency** the number of concurrent **eachFunction**'s that may be executed\n\nexample\n-------\n\n```javascript\nimport { doWhile } from 'dank-do-while';\n\ndoWhile(function (next) {\t\n\tsomeAsyncFunction(function (err, result) {\n\t\treturn next(result !== 'done');\n\t});\n}, function () {\n\tconsole.log('done');\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwankdanker%2Fnode-dank-do-while","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwankdanker%2Fnode-dank-do-while","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwankdanker%2Fnode-dank-do-while/lists"}