{"name":"combine-errors","version":"3.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":{"custom-error-instance":"2.1.1"},"main":"index","devDependencies":{"mocha":"2.4.5"},"gitHead":"515602c75e9802035b56dd9fa42cff58a4b5cc9a","bugs":{"url":"https://github.com/MatthewMueller/combine-errors/issues"},"homepage":"https://github.com/MatthewMueller/combine-errors#readme","_id":"combine-errors@3.0.1","scripts":{},"_shasum":"79a04c22db8a6c5846a951dc41e8838f92e1c1e9","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.3","_npmUser":{"name":"mattmueller","email":"mattmuelle@gmail.com"},"maintainers":[{"name":"mattmueller","email":"mattmuelle@gmail.com"}],"dist":{"shasum":"79a04c22db8a6c5846a951dc41e8838f92e1c1e9","tarball":"http://registry-npm.ywwl.com/combine-errors/download/combine-errors-3.0.1.tgz","integrity":"sha512-AtExYWaleAUiGvBXuVammxGTYhiAhURhFd0sGUHRla3JEM06t3tU8DvmNJ+AlFhFr8ed4sOpPGjnG/G7gPbJpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHhoOAhE1RGrcAkvK9eHLRfmiUi7ZdVKooo33bJq/We/AiBHQgev2CFBxKx1PjlO4s7vLb/xHEjptinOu3fm17ZFJg=="}],"size":2072,"noattachment":false,"key":"/combine-errors/-/combine-errors-3.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/combine-errors-3.0.1.tgz_1461514400869_0.5180070814676583"},"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":1461514404171,"_cnpm_publish_time":1461514404171,"dist-tags":{"latest":"3.0.4"}}