{"id":15369105,"url":"https://github.com/developit/praline","last_synced_at":"2025-04-15T13:43:04.137Z","repository":{"id":32879339,"uuid":"36473647","full_name":"developit/praline","owner":"developit","description":"Parallel task wrapper for Node-style callbacks","archived":false,"fork":false,"pushed_at":"2017-05-14T02:49:42.000Z","size":25,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T11:16:09.793Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://npm.im/praline","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/developit.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-05-29T00:21:03.000Z","updated_at":"2020-07-19T23:02:19.000Z","dependencies_parsed_at":"2022-07-13T19:09:50.837Z","dependency_job_id":null,"html_url":"https://github.com/developit/praline","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpraline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpraline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpraline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpraline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developit","download_url":"https://codeload.github.com/developit/praline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986315,"owners_count":21194025,"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-01T13:34:11.847Z","updated_at":"2025-04-15T13:43:04.104Z","avatar_url":"https://github.com/developit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"praline [![NPM][npm-version-image]][npm-url] [![Bower][bower-image]][bower-url] [![Downloads][npm-downloads-image]][npm-url] [![Build Status][travis-image]][travis-url]\n=======\n\n\u003e Parallel task wrapper for Node-style callbacks\n\nTasks are functions, or arrays where the first item is a function and the remainder are arguments to pass it.\nAll tasks must have Node-style callbacks like `(err, result)`.\n\n\n---\n\n# `parallel()`\nExecute an Array of tasks in parallel.\n\n\u003e `tasks` - Array of tasks to run in parallel\n\u003e\n\u003e `callback` - Gets called on completion `(err, ...results)`\n\n```js\nparallel([\n\ttaskOne,\n\t[taskTwo, 'arg1', 'arg2'],\n\tcb =\u003e cb(null, 'data3')\n], (err, t1Result, t2Result, data3) =\u003e {\n\tcallback(err, { t1Result, t2Result, data3 });\n});\n```\n\n# `sequence()`\nExecute an Array of tasks in order.\n\n\u003e `tasks` - Array of tasks to run in order\n\u003e\n\u003e `callback` - Gets called on completion `(err, ...results)`\n\n```js\nsequence([\n\ttaskOne,\n\t[taskTwo, 'arg1', 'arg2']\n], (err, t1, t2) =\u003e {\n\tcallback(err, { t1, t2 });\n});\n```\n\n---\n\nLicense\n-------\n\nMIT\n\n\n[npm-url]: https://npmjs.org/package/praline\n[bower-url]: http://bower.io/search/?q=praline\n[travis-url]: http://travis-ci.org/developit/praline\n[npm-version-image]: http://img.shields.io/npm/v/praline.svg?style=flat-square\n[npm-downloads-image]: http://img.shields.io/npm/dm/praline.svg?style=flat-square\n[bower-image]: https://img.shields.io/bower/v/praline.svg?style=flat-square\n[travis-image]: http://img.shields.io/travis/developit/praline.svg?style=flat-square\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fpraline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopit%2Fpraline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fpraline/lists"}