{"name":"combine-errors","version":"1.0.0","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":"5f3494057952811c81a0624a028d2754cc06d67c","bugs":{"url":"https://github.com/MatthewMueller/combine-errors/issues"},"homepage":"https://github.com/MatthewMueller/combine-errors#readme","_id":"combine-errors@1.0.0","scripts":{},"_shasum":"810aaa45df0e3c06e28e84736448b6a07e14f336","_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":"810aaa45df0e3c06e28e84736448b6a07e14f336","tarball":"http://registry-npm.ywwl.com/combine-errors/download/combine-errors-1.0.0.tgz","integrity":"sha512-GFt/jBf4U/sY6ux9YzWMUtH13DlL5LW+K15tRP2dSd8/hX3K6qcuSYq83BewB0s8yB7c6AgqoMI6hKC9MqpyhA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGIEHKuHpeUSAGxcKQ+y6Jx7jG4i8hnpPTbDv5PZdUdsAiEA10L2NewE3UXfRSCDGaeHCApHVVVjzq8580/Yt1s5enk="}],"size":1377,"noattachment":false,"key":"/combine-errors/-/combine-errors-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/combine-errors-1.0.0.tgz_1457684915847_0.04199974238872528"},"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":1457684916438,"_cnpm_publish_time":1457684916438,"dist-tags":{"latest":"3.0.4"}}