{"name":"combine-errors","version":"2.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":"f87460e2d46327d72bce70997553613467d00b69","bugs":{"url":"https://github.com/MatthewMueller/combine-errors/issues"},"homepage":"https://github.com/MatthewMueller/combine-errors#readme","_id":"combine-errors@2.0.0","scripts":{},"_shasum":"6ca13e4773111d8e7a74958966a4f4ff589960c3","_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":"6ca13e4773111d8e7a74958966a4f4ff589960c3","tarball":"http://registry-npm.ywwl.com/combine-errors/download/combine-errors-2.0.0.tgz","integrity":"sha512-ucM4TFBWgOFOwS2L6HETuihuVW5yuLhWJbejggnU9dxkCJ/vbh5zKjuOxULJDCT33Kl2OLAvHJyu26a/o42xJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4rYfFIA9sPsxfPdpFw/hMXnIKvwJniLWBdUCkJdoeFAIhAIJPivp2ZgMI5t5QnimTppWwmpQCW76EWt5uRLQdPBv8"}],"size":1661,"noattachment":false,"key":"/combine-errors/-/combine-errors-2.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/combine-errors-2.0.0.tgz_1458735258341_0.014171869726851583"},"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":1458735260645,"_cnpm_publish_time":1458735260645,"dist-tags":{"latest":"3.0.4"}}