{"name":"combine-errors","version":"1.0.1","description":"Combine errors into one","keywords":["combine","errors","compose","error","handling"],"author":{"name":"Matthew Mueller","email":"mattmuelle@gmail.com"},"repository":{"type":"git","url":"git://github.com/MatthewMueller/combine-errors.git"},"dependencies":{},"main":"index","gitHead":"e38c46d2e747500f95f4e7d0f305c41c3d8c3c19","bugs":{"url":"https://github.com/MatthewMueller/combine-errors/issues"},"homepage":"https://github.com/MatthewMueller/combine-errors#readme","_id":"combine-errors@1.0.1","scripts":{},"_shasum":"886f47531a89f9fc8f0a9ab1c60e1acb2345dd8e","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"mattmueller","email":"mattmuelle@gmail.com"},"maintainers":[{"name":"mattmueller","email":"mattmuelle@gmail.com"}],"dist":{"shasum":"886f47531a89f9fc8f0a9ab1c60e1acb2345dd8e","tarball":"http://registry-npm.ywwl.com/combine-errors/download/combine-errors-1.0.1.tgz","integrity":"sha512-nh5AvWa34vJLC5pPD5d/fzCpChhU32FDjWkzYUWaUvEHyW9mqJrTgJuBn8JuOlNLG82gE25MK4ICoCcydd0DSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzIdVvt8oUSVsntC2p59x+/QJph0j/Bo8Fsa7DWikvYQIhAJp7O3S33z+3kbnA9kFzyJSAhYfRIBUIHYfQqySTXqdG"}],"size":1620,"noattachment":false,"key":"/combine-errors/-/combine-errors-1.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/combine-errors-1.0.1.tgz_1457685383357_0.4909461117349565"},"directories":{},"readme":"\n# combine-errors\n\n  Simple, dependency-free 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 && error(err).stack === err.stack`\n- zero dependencies\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=>\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\nMIT\n","publish_time":1457685383838,"_cnpm_publish_time":1457685383838,"dist-tags":{"latest":"3.0.4"}}