{"id":13486232,"url":"https://github.com/matthewmueller/combine-errors","last_synced_at":"2025-09-29T00:33:18.963Z","repository":{"id":48902841,"uuid":"53651586","full_name":"matthewmueller/combine-errors","owner":"matthewmueller","description":"Simple way to combine multiple errors into one.","archived":false,"fork":false,"pushed_at":"2019-11-22T15:35:13.000Z","size":12,"stargazers_count":31,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-31T07:26:17.149Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matthewmueller.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-11T08:28:23.000Z","updated_at":"2024-05-06T17:26:09.000Z","dependencies_parsed_at":"2022-09-26T20:20:39.986Z","dependency_job_id":null,"html_url":"https://github.com/matthewmueller/combine-errors","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/matthewmueller/combine-errors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewmueller%2Fcombine-errors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewmueller%2Fcombine-errors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewmueller%2Fcombine-errors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewmueller%2Fcombine-errors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matthewmueller","download_url":"https://codeload.github.com/matthewmueller/combine-errors/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewmueller%2Fcombine-errors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277450940,"owners_count":25819971,"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","status":"online","status_checked_at":"2025-09-28T02:00:08.834Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-07-31T18:00:42.174Z","updated_at":"2025-09-29T00:33:18.727Z","avatar_url":"https://github.com/matthewmueller.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\n# combine-errors\n\n  Simple way to combine multiple errors into one.\n\n  This is useful for handling multiple asynchronous errors, where you want to catch all the errors and combine them to return just a single error.\n\n## Features\n\n- `error instanceof Error === true`\n- composable: `error([error([err1, err2]), err3])`\n- stack and message are combined in a nice way\n- array-like object, so you can access the original errors by looping over the error\n- If you just have one error, it looks exactly like raw error meaning, `error(err).message === err.message \u0026\u0026 error(err).stack === err.stack`\n- should work in the browser, though I haven't tested it yet\n\n## Installation\n\n```\nnpm install combine-errors\n```\n\n## Usage\n\n```js\nvar error = require('combine-errors')\nvar err = error([\n  new Error('boom'),\n  new Error('kablam')\n])\nthrow err\n/*\n=\u003e\nError: boom\n    at repl:2:1\n    at REPLServer.defaultEval (repl.js:262:27)\n    at bound (domain.js:287:14)\n    at REPLServer.runBound [as eval] (domain.js:300:12)\n    at REPLServer.\u003canonymous\u003e (repl.js:431:12)\n    at emitOne (events.js:95:20)\n    at REPLServer.emit (events.js:182:7)\n    at REPLServer.Interface._onLine (readline.js:211:10)\n    at REPLServer.Interface._line (readline.js:550:8)\n    at REPLServer.Interface._ttyWrite (readline.js:827:14)\n\nError: kablam\n    at repl:3:1\n    at REPLServer.defaultEval (repl.js:262:27)\n    at bound (domain.js:287:14)\n    at REPLServer.runBound [as eval] (domain.js:300:12)\n    at REPLServer.\u003canonymous\u003e (repl.js:431:12)\n    at emitOne (events.js:95:20)\n    at REPLServer.emit (events.js:182:7)\n    at REPLServer.Interface._onLine (readline.js:211:10)\n    at REPLServer.Interface._line (readline.js:550:8)\n    at REPLServer.Interface._ttyWrite (readline.js:827:14)\n*/\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthewmueller%2Fcombine-errors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatthewmueller%2Fcombine-errors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthewmueller%2Fcombine-errors/lists"}