{"_id":"combine-errors@3.0.4","bugs":{"url":"https://github.com/MatthewMueller/combine-errors/issues"},"dist":{"shasum":"d96d02022dcceefdde72e38ef3459872c7eb92bd","tarball":"http://registry-npm.ywwl.com/combine-errors/download/combine-errors-3.0.4.tgz","fileCount":7,"integrity":"sha512-o2AO3DWIBbDrJ16unhIe8+9RwqHKh/DbaIMKrNlXjEc1Od0psMLv+Cn3xocQlipmyZ92Eth4TjJFJQWN3VDFBQ==","signatures":[{"sig":"MEYCIQDGcOmu4b6IwtWhbY0HZQq6lsMb79V19smYzehqYOutfwIhALWwGs3A6pjaxC9edR9SgJvokjtaSUx5cFfMYkqey1PV","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDXn5VJBIOZBUTvcajzwAQqr+3ZCnHkgTbSvCy1lrNm4wIgDzIimWzbz/9k9wWjp+eb+3xk9d2RmPzxfutmtAYWA2c="}],"unpackedSize":6844,"size":2818,"noattachment":false,"key":"/combine-errors/-/combine-errors-3.0.4.tgz"},"main":"index","name":"combine-errors","author":{"name":"Matthew Mueller","email":"mattmuelle@gmail.com"},"gitHead":"c309e3305a480dd9e04b0e1554a7d2cc3fa8f772","version":"3.0.4","_npmUser":{"name":"mattmueller","email":"mattmuelle@gmail.com"},"homepage":"https://github.com/MatthewMueller/combine-errors#readme","keywords":["combine","errors","compose","error","handling"],"repository":{"url":"git://github.com/MatthewMueller/combine-errors.git","type":"git"},"_npmVersion":"11.17.0","description":"Combine errors into one","directories":{},"maintainers":[{"name":"blakeembrey","email":"hello@blakeembrey.com"},{"name":"mattmueller","email":"mattmuelle@gmail.com"}],"_nodeVersion":"26.5.0","dependencies":{"lodash.uniqby":"4.5.0","custom-error-instance":"2.1.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"2.4.5"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/combine-errors_3.0.4_1793474618159_0.5806012253992159"},"readme":"# combine-errors\n\nSimple way to combine multiple errors into one.\n\nThis 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 && 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([new Error(\"boom\"), new Error(\"kablam\")])\nthrow err\n/*\n=>\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.<anonymous> (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.<anonymous> (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\nThis project is licensed under the MIT License - see the [./License.md] file for details.\n","publish_time":1793474618239,"_cnpm_publish_time":1793474618239,"dist-tags":{"latest":"3.0.4"}}