{"id":13565430,"url":"https://github.com/feross/run-series","last_synced_at":"2025-06-27T15:07:02.876Z","repository":{"id":15975789,"uuid":"18718678","full_name":"feross/run-series","owner":"feross","description":"Run an array of functions in series","archived":false,"fork":false,"pushed_at":"2023-02-27T23:57:08.000Z","size":126,"stargazers_count":247,"open_issues_count":1,"forks_count":16,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-27T15:05:03.794Z","etag":null,"topics":["async","browser","javascript","nodejs","series"],"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/feross.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2014-04-13T01:17:40.000Z","updated_at":"2025-06-25T16:04:11.000Z","dependencies_parsed_at":"2024-03-17T00:54:12.666Z","dependency_job_id":"ae46e1f0-4847-4881-ac1b-49c4a111a739","html_url":"https://github.com/feross/run-series","commit_stats":{"total_commits":68,"total_committers":4,"mean_commits":17.0,"dds":"0.11764705882352944","last_synced_commit":"0dbc93c852a2c0e74f342a244bf7202e0cb9f60c"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/feross/run-series","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Frun-series","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Frun-series/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Frun-series/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Frun-series/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feross","download_url":"https://codeload.github.com/feross/run-series/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Frun-series/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262279099,"owners_count":23286547,"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","browser","javascript","nodejs","series"],"created_at":"2024-08-01T13:01:46.806Z","updated_at":"2025-06-27T15:07:02.838Z","avatar_url":"https://github.com/feross.png","language":"JavaScript","readme":"# run-series [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]\n\n[travis-image]: https://img.shields.io/travis/feross/run-series/master.svg\n[travis-url]: https://travis-ci.org/feross/run-series\n[npm-image]: https://img.shields.io/npm/v/run-series.svg\n[npm-url]: https://npmjs.org/package/run-series\n[downloads-image]: https://img.shields.io/npm/dm/run-series.svg\n[downloads-url]: https://npmjs.org/package/run-series\n[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg\n[standard-url]: https://standardjs.com\n\n### Run an array of functions in series\n\n![series](https://raw.githubusercontent.com/feross/run-series/master/img.png) [![Sauce Test Status](https://saucelabs.com/browser-matrix/run-series.svg)](https://saucelabs.com/u/run-series)\n\n### install\n\n```\nnpm install run-series\n```\n\n### usage\n\n#### series(tasks, [callback])\n\nRun the functions in the `tasks` array in series, each one running once the previous\nfunction has completed. If any functions in the series pass an error to its callback, no\nmore functions are run, and `callback` is immediately called with the value of the error.\nOtherwise, `callback` receives an array of results when `tasks` have completed.\n\n##### arguments\n\n- `tasks` - An array containing functions to run, each function is passed a\n`callback(err, result)` which it must call on completion with an error `err` (which can\nbe `null`) and an optional result value.\n- `callback(err, results)` - An optional callback to run once all the functions have\ncompleted. This function gets a results array containing all the result arguments passed\nto the task callbacks.\n\n##### example\n\n```js\nvar series = require('run-series')\n\nseries([\n  function (callback) {\n    // do some stuff ...\n    callback(null, 'one')\n  },\n  function (callback) {\n    // do some stuff ...\n    callback(null, 'two')\n  }\n],\n// optional callback\nfunction (err, results) {\n  // the results array will equal ['one','two']\n})\n```\n\nThis module is basically equavalent to\n[`async.series`](https://github.com/caolan/async#seriestasks-callback), but it's\nhandy to just have the functions you need instead of the kitchen sink. Modularity!\nEspecially handy if you're serving to the browser and need to reduce your javascript\nbundle size.\n\nWorks great in the browser with [browserify](http://browserify.org/)!\n\n### see also\n\n- [run-auto](https://github.com/feross/run-auto)\n- [run-parallel](https://github.com/feross/run-parallel)\n- [run-parallel-limit](https://github.com/feross/run-parallel-limit)\n- [run-waterfall](https://github.com/feross/run-waterfall)\n\n### license\n\nMIT. Copyright (c) [Feross Aboukhadijeh](http://feross.org).\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeross%2Frun-series","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeross%2Frun-series","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeross%2Frun-series/lists"}