{"_id":"nested-error-stacks","_rev":"2851862","name":"nested-error-stacks","description":"An Error subclass that will chain nested Errors and dump nested stacktraces","dist-tags":{"latest":"2.1.1"},"maintainers":[{"name":"mdlavin","email":"matt.lavin@gmail.com"}],"time":{"modified":"2022-09-06T16:29:06.000Z","created":"2014-04-17T15:30:19.413Z","2.1.1":"2022-03-28T20:21:52.802Z","2.1.0":"2018-08-13T13:27:48.865Z","2.0.1":"2018-05-23T01:44:07.402Z","2.0.0":"2016-11-09T15:24:16.887Z","1.0.2":"2015-11-20T16:14:13.042Z","1.0.1":"2015-07-17T13:57:35.015Z","1.0.0":"2015-04-02T18:11:58.699Z","0.0.5":"2015-03-30T13:21:15.528Z","0.0.4":"2015-03-17T13:42:43.179Z","0.0.3":"2014-04-18T15:05:22.597Z","0.0.2":"2014-04-17T15:35:03.113Z","0.0.1":"2014-04-17T15:30:19.413Z"},"users":{"brandonpapworth":true,"netwjx":true,"zhenguo.zhao":true},"author":{"name":"Matt Lavin","email":"matt.lavin@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/mdlavin/nested-error-stacks.git"},"versions":{"2.1.1":{"name":"nested-error-stacks","version":"2.1.1","description":"An Error subclass that will chain nested Errors and dump nested stacktraces","bugs":{"url":"https://github.com/mdlavin/nested-error-stacks/issues"},"keywords":["error","nested","stack"],"repository":{"type":"git","url":"git+https://github.com/mdlavin/nested-error-stacks.git"},"main":"index.js","scripts":{"test":"if node --version | grep -vE '^v(0|3|4|5|6|7)\\.' > /dev/null 2>&1; then eslint . || exit -1; fi; if [ \"$RUN_ZUUL\" != \"true\" ]; then node_modules/.bin/mocha; else npm install zuul && node_modules/.bin/zuul -- test.js; fi"},"author":{"name":"Matt Lavin","email":"matt.lavin@gmail.com"},"license":"MIT","devDependencies":{"chai":"^3.5.0","eslint":"^6.6.0","mocha":"^3.1.2","uuid":"^2.0.3"},"gitHead":"4f4c091fe51c002c4b8bb1a8ee11702e50e26d8a","homepage":"https://github.com/mdlavin/nested-error-stacks#readme","_id":"nested-error-stacks@2.1.1","_nodeVersion":"14.18.2","_npmVersion":"6.14.15","dist":{"shasum":"26c8a3cee6cc05fbcf1e333cd2fc3e003326c0b5","size":2554,"noattachment":false,"key":"/nested-error-stacks/-/nested-error-stacks-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-error-stacks/download/nested-error-stacks-2.1.1.tgz"},"_npmUser":{"name":"mdlavin","email":"matt.lavin@gmail.com"},"directories":{},"maintainers":[{"name":"mdlavin","email":"matt.lavin@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nested-error-stacks_2.1.1_1648498912667_0.4297201029683799"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-28T20:21:56.690Z","publish_time":1648498912802,"_cnpm_publish_time":1648498912802},"2.1.0":{"name":"nested-error-stacks","version":"2.1.0","description":"An Error subclass that will chain nested Errors and dump nested stacktraces","bugs":{"url":"https://github.com/mdlavin/nested-error-stacks/issues"},"keywords":["error","nested","stack"],"repository":{"type":"git","url":"git+https://github.com/mdlavin/nested-error-stacks.git"},"main":"index.js","files":["index.js","LICENSE"],"scripts":{"test":"if node --version | grep -vE 'v(0|3)' > /dev/null 2>&1; then eslint . || exit -1; fi; if [ \"$RUN_ZUUL\" != \"true\" ]; then node_modules/.bin/mocha; else npm install zuul && node_modules/.bin/zuul -- test.js; fi"},"author":{"name":"Matt Lavin","email":"matt.lavin@gmail.com"},"license":"MIT","devDependencies":{"chai":"^3.5.0","eslint":"^3.9.1","mocha":"^3.1.2","uuid":"^2.0.3"},"gitHead":"cdcf5fb17f0dcecaa56428510b08b0c52ce605b1","homepage":"https://github.com/mdlavin/nested-error-stacks#readme","_id":"nested-error-stacks@2.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"mdlavin","email":"matt.lavin@gmail.com"},"dist":{"shasum":"0fbdcf3e13fe4994781280524f8b96b0cdff9c61","size":2555,"noattachment":false,"key":"/nested-error-stacks/-/nested-error-stacks-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-error-stacks/download/nested-error-stacks-2.1.0.tgz"},"maintainers":[{"name":"mdlavin","email":"matt.lavin@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nested-error-stacks_2.1.0_1534166868709_0.9764420223448063"},"_hasShrinkwrap":false,"publish_time":1534166868865,"_cnpm_publish_time":1534166868865},"2.0.1":{"name":"nested-error-stacks","version":"2.0.1","description":"An Error subclass that will chain nested Errors and dump nested stacktraces","bugs":{"url":"https://github.com/mdlavin/nested-error-stacks/issues"},"keywords":["error","nested","stack"],"repository":{"type":"git","url":"git+https://github.com/mdlavin/nested-error-stacks.git"},"main":"index.js","files":["index.js","LICENSE"],"scripts":{"test":"if node --version | grep -vE 'v(0|3)' > /dev/null 2>&1; then eslint . || exit -1; fi; if [ \"$RUN_ZUUL\" != \"true\" ]; then node_modules/.bin/mocha; else npm install zuul && node_modules/.bin/zuul -- test.js; fi"},"author":{"name":"Matt Lavin","email":"matt.lavin@gmail.com"},"license":"MIT","devDependencies":{"chai":"^3.5.0","eslint":"^3.9.1","mocha":"^3.1.2","uuid":"^2.0.3"},"gitHead":"b2113ca6cf8b154df412f89d9d9d477ec69ae3eb","homepage":"https://github.com/mdlavin/nested-error-stacks#readme","_id":"nested-error-stacks@2.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"mdlavin","email":"matt.lavin@gmail.com"},"dist":{"shasum":"d2cc9fc5235ddb371fc44d506234339c8e4b0a4b","size":2571,"noattachment":false,"key":"/nested-error-stacks/-/nested-error-stacks-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-error-stacks/download/nested-error-stacks-2.0.1.tgz"},"maintainers":[{"name":"mdlavin","email":"matt.lavin@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nested-error-stacks_2.0.1_1527039847180_0.8584198541373815"},"_hasShrinkwrap":false,"publish_time":1527039847402,"_cnpm_publish_time":1527039847402},"2.0.0":{"name":"nested-error-stacks","version":"2.0.0","description":"An Error subclass that will chain nested Errors and dump nested stacktraces","bugs":{"url":"https://github.com/mdlavin/nested-error-stacks/issues"},"keywords":["error","nested","stack"],"repository":{"type":"git","url":"git+https://github.com/mdlavin/nested-error-stacks.git"},"main":"index.js","files":["index.js","LICENSE"],"scripts":{"test":"if node --version | grep -vE 'v(0|3)' > /dev/null 2>&1; then eslint . || exit -1; fi; if [ \"$RUN_ZUUL\" != \"true\" ]; then node_modules/.bin/mocha; else npm install zuul && node_modules/.bin/zuul -- test.js; fi"},"author":{"name":"Matt Lavin","email":"matt.lavin@gmail.com"},"license":"MIT","dependencies":{"inherits":"~2.0.1"},"devDependencies":{"chai":"^3.5.0","eslint":"^3.9.1","mocha":"^3.1.2","uuid":"^2.0.3"},"gitHead":"b9c587d406292eb9af2416e5638c1fa5a3846e7c","homepage":"https://github.com/mdlavin/nested-error-stacks#readme","_id":"nested-error-stacks@2.0.0","_shasum":"98b2ffaefb4610fa3936f1e71435d30700de2840","_from":".","_npmVersion":"2.15.1","_nodeVersion":"0.10.48","_npmUser":{"name":"mdlavin","email":"matt.lavin@gmail.com"},"dist":{"shasum":"98b2ffaefb4610fa3936f1e71435d30700de2840","size":2581,"noattachment":false,"key":"/nested-error-stacks/-/nested-error-stacks-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-error-stacks/download/nested-error-stacks-2.0.0.tgz"},"maintainers":[{"name":"mdlavin","email":"matt.lavin@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/nested-error-stacks-2.0.0.tgz_1478705056336_0.8261979138478637"},"directories":{},"publish_time":1478705056887,"_cnpm_publish_time":1478705056887,"_hasShrinkwrap":false},"1.0.2":{"name":"nested-error-stacks","version":"1.0.2","description":"An Error subclass that will chain nested Errors and dump nested stacktraces","bugs":{"url":"https://github.com/mdlavin/nested-error-stacks/issues"},"keywords":["error","nested","stack"],"repository":{"type":"git","url":"git+https://github.com/mdlavin/nested-error-stacks.git"},"main":"index.js","files":["index.js","LICENSE"],"scripts":{"test":"if [ \"$RUN_ZUUL\" != \"true\" ]; then node_modules/.bin/mocha; else npm install zuul && node_modules/.bin/zuul -- test.js; fi"},"author":{"name":"Matt Lavin","email":"matt.lavin@gmail.com"},"license":"MIT","dependencies":{"inherits":"~2.0.1"},"devDependencies":{"chai":"~1.9.1","mocha":"~1.18.2","uuid":"~1.4.1"},"gitHead":"7eb0c2058a0fd038d63703b953ca9bacd70b866f","homepage":"https://github.com/mdlavin/nested-error-stacks#readme","_id":"nested-error-stacks@1.0.2","_shasum":"19f619591519f096769a5ba9a86e6eeec823c3cf","_from":".","_npmVersion":"2.13.2","_nodeVersion":"2.5.0","_npmUser":{"name":"mdlavin","email":"matt.lavin@gmail.com"},"maintainers":[{"name":"mdlavin","email":"matt.lavin@gmail.com"}],"dist":{"shasum":"19f619591519f096769a5ba9a86e6eeec823c3cf","size":2359,"noattachment":false,"key":"/nested-error-stacks/-/nested-error-stacks-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-error-stacks/download/nested-error-stacks-1.0.2.tgz"},"directories":{},"publish_time":1448036053042,"_cnpm_publish_time":1448036053042,"_hasShrinkwrap":false},"1.0.1":{"name":"nested-error-stacks","version":"1.0.1","description":"An Error subclass that will chain nested Errors and dump nested stacktraces","bugs":{"url":"https://github.com/mdlavin/nested-error-stacks/issues"},"keywords":["error","nested","stack"],"repository":{"type":"git","url":"https://github.com/mdlavin/nested-error-stacks.git"},"main":"index.js","files":["index.js","LICENSE"],"scripts":{"test":"mocha"},"author":{"name":"Matt Lavin","email":"matt.lavin@gmail.com"},"license":"MIT","dependencies":{"inherits":"~2.0.1"},"devDependencies":{"mocha":"~1.18.2","uuid":"~1.4.1","chai":"~1.9.1"},"gitHead":"ba63770f16f3dd41c424822057fa78b82e2c0269","homepage":"https://github.com/mdlavin/nested-error-stacks","_id":"nested-error-stacks@1.0.1","_shasum":"d7bb90f2e66069d1f40b9d6e8daa69885ba39173","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mdlavin","email":"matt.lavin@gmail.com"},"maintainers":[{"name":"mdlavin","email":"matt.lavin@gmail.com"}],"dist":{"shasum":"d7bb90f2e66069d1f40b9d6e8daa69885ba39173","size":2295,"noattachment":false,"key":"/nested-error-stacks/-/nested-error-stacks-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-error-stacks/download/nested-error-stacks-1.0.1.tgz"},"directories":{},"publish_time":1437141455015,"_cnpm_publish_time":1437141455015,"_hasShrinkwrap":false},"1.0.0":{"name":"nested-error-stacks","version":"1.0.0","description":"An Error subclass that will chain nested Errors and dump nested stacktraces","bugs":{"url":"https://github.com/mdlavin/nested-error-stacks/issues"},"keywords":["error","nested","stack"],"repository":{"type":"git","url":"https://github.com/mdlavin/nested-error-stacks.git"},"main":"index.js","files":["index.js","LICENSE"],"scripts":{"test":"mocha"},"author":{"name":"Matt Lavin","email":"matt.lavin@gmail.com"},"license":"MIT","devDependencies":{"mocha":"~1.18.2","uuid":"~1.4.1","chai":"~1.9.1"},"gitHead":"a6b1b29b91d9203516e1654c6e8db0e7cf297085","homepage":"https://github.com/mdlavin/nested-error-stacks","_id":"nested-error-stacks@1.0.0","_shasum":"3bd2785bb1fa9ebbf608e293e9ccb9ea765254c7","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mdlavin","email":"matt.lavin@gmail.com"},"maintainers":[{"name":"mdlavin","email":"matt.lavin@gmail.com"}],"dist":{"shasum":"3bd2785bb1fa9ebbf608e293e9ccb9ea765254c7","size":2195,"noattachment":false,"key":"/nested-error-stacks/-/nested-error-stacks-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-error-stacks/download/nested-error-stacks-1.0.0.tgz"},"directories":{},"publish_time":1427998318699,"_cnpm_publish_time":1427998318699,"_hasShrinkwrap":false},"0.0.5":{"name":"nested-error-stacks","version":"0.0.5","description":"An Error subclass that will chain nested Errors and dump nested stacktraces","bugs":{"url":"https://github.com/mdlavin/nested-error-stacks/issues"},"keywords":["error","nested","stack"],"repository":{"type":"git","url":"https://github.com/mdlavin/nested-error-stacks.git"},"main":"index.js","scripts":{"test":"mocha"},"author":{"name":"Matt Lavin","email":"matt.lavin@gmail.com"},"license":"MIT","devDependencies":{"mocha":"~1.18.2","uuid":"~1.4.1","chai":"~1.9.1"},"gitHead":"52763e5967cdf392cd215a035cbd2dac5b99dffc","homepage":"https://github.com/mdlavin/nested-error-stacks","_id":"nested-error-stacks@0.0.5","_shasum":"b239338208fd783cd3d0b6c597a83d2027f9cf58","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mdlavin","email":"matt.lavin@gmail.com"},"maintainers":[{"name":"mdlavin","email":"matt.lavin@gmail.com"}],"dist":{"shasum":"b239338208fd783cd3d0b6c597a83d2027f9cf58","size":2804,"noattachment":false,"key":"/nested-error-stacks/-/nested-error-stacks-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-error-stacks/download/nested-error-stacks-0.0.5.tgz"},"directories":{},"publish_time":1427721675528,"_cnpm_publish_time":1427721675528,"_hasShrinkwrap":false},"0.0.4":{"name":"nested-error-stacks","version":"0.0.4","description":"An Error subclass that will chain nested Errors and dump nested stacktraces","bugs":{"url":"https://github.com/mdlavin/nested-error-stacks/issues"},"keywords":["error","nested","stack"],"repository":{"type":"git","url":"https://github.com/mdlavin/nested-error-stacks.git"},"main":"index.js","scripts":{"test":"mocha"},"author":{"name":"Matt Lavin","email":"matt.lavin@gmail.com"},"license":"MIT","devDependencies":{"mocha":"~1.18.2","uuid":"~1.4.1","chai":"~1.9.1"},"gitHead":"b5334fd46dc9d47e36229d01cec1b340e71ed6ee","homepage":"https://github.com/mdlavin/nested-error-stacks","_id":"nested-error-stacks@0.0.4","_shasum":"ff65d69d4822fdb1b5a1fb37db4ba53b18867bc4","_from":"./","_npmVersion":"1.4.28","_npmUser":{"name":"mdlavin","email":"matt.lavin@gmail.com"},"maintainers":[{"name":"mdlavin","email":"matt.lavin@gmail.com"}],"dist":{"shasum":"ff65d69d4822fdb1b5a1fb37db4ba53b18867bc4","size":2631,"noattachment":false,"key":"/nested-error-stacks/-/nested-error-stacks-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-error-stacks/download/nested-error-stacks-0.0.4.tgz"},"directories":{},"publish_time":1426599763179,"_cnpm_publish_time":1426599763179,"_hasShrinkwrap":false},"0.0.3":{"name":"nested-error-stacks","version":"0.0.3","description":"An Error subclass that will chain nested Errors and dump nested stacktraces","bugs":{"url":"https://github.com/mdlavin/nested-error-stacks/issues"},"keywords":["error","nested","stack"],"repository":{"type":"git","url":"https://github.com/mdlavin/nested-error-stacks.git"},"main":"index.js","scripts":{"test":"mocha"},"author":{"name":"Matt Lavin","email":"matt.lavin@gmail.com"},"license":"MIT","devDependencies":{"mocha":"~1.18.2","uuid":"~1.4.1","chai":"~1.9.1"},"homepage":"https://github.com/mdlavin/nested-error-stacks","_id":"nested-error-stacks@0.0.3","dist":{"shasum":"37a9a70305ca484056144c3cd2a9d8cef5f7cc47","size":2594,"noattachment":false,"key":"/nested-error-stacks/-/nested-error-stacks-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-error-stacks/download/nested-error-stacks-0.0.3.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mdlavin","email":"matt.lavin@gmail.com"},"maintainers":[{"name":"mdlavin","email":"matt.lavin@gmail.com"}],"directories":{},"publish_time":1397833522597,"_cnpm_publish_time":1397833522597,"_hasShrinkwrap":false},"0.0.2":{"name":"nested-error-stacks","version":"0.0.2","description":"An Error subclass that will chain nested Errors and dump nested stacktraces","bugs":{"url":"https://github.com/mdlavin/nested-error-stacks/issues"},"keywords":["error","nested","stack"],"repository":{"type":"git","url":"https://github.com/mdlavin/nested-error-stacks.git"},"main":"index.js","scripts":{"test":"mocha"},"author":{"name":"Matt Lavin","email":"matt.lavin@gmail.com"},"license":"MIT","devDependencies":{"mocha":"^1.18.2","uuid":"^1.4.1","chai":"^1.9.1"},"homepage":"https://github.com/mdlavin/nested-error-stacks","_id":"nested-error-stacks@0.0.2","dist":{"shasum":"9263eed7575ec0b984389c7625696352f0a7f287","size":1903,"noattachment":false,"key":"/nested-error-stacks/-/nested-error-stacks-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-error-stacks/download/nested-error-stacks-0.0.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mdlavin","email":"matt.lavin@gmail.com"},"maintainers":[{"name":"mdlavin","email":"matt.lavin@gmail.com"}],"directories":{},"publish_time":1397748903113,"_hasShrinkwrap":false,"_cnpm_publish_time":1397748903113},"0.0.1":{"name":"nested-error-stacks","version":"0.0.1","description":"An Error subclass that will chain nested Errors and dump nested stacktraces","bugs":{"url":"https://github.com/mdlavin/nested-error-stacks/issues"},"keywords":["error","nested","stack"],"repository":{"type":"git","url":"https://github.com/mdlavin/nested-error-stacks.git"},"main":"index.js","scripts":{"test":"mocha"},"author":{"name":"Matt Lavin","email":"matt.lavin@gmail.com"},"license":"MIT","devDependencies":{"mocha":"^1.18.2","uuid":"^1.4.1","chai":"^1.9.1"},"homepage":"https://github.com/mdlavin/nested-error-stacks","_id":"nested-error-stacks@0.0.1","dist":{"shasum":"b0655f5407b13566e660482354b582056d0acd70","size":2183,"noattachment":false,"key":"/nested-error-stacks/-/nested-error-stacks-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/nested-error-stacks/download/nested-error-stacks-0.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mdlavin","email":"matt.lavin@gmail.com"},"maintainers":[{"name":"mdlavin","email":"matt.lavin@gmail.com"}],"directories":{},"publish_time":1397748619413,"_hasShrinkwrap":false,"_cnpm_publish_time":1397748619413}},"readme":"Nested stacktraces for Node.js!\n===============================\n\n[![Build Status](https://github.com/mdlavin/nested-error-stacks/actions/workflows/test.yaml/badge.svg)](https://github.com/mdlavin/nested-error-stacks/actions?query=branch%3Amaster)\n[![NPM version](https://badge.fury.io/js/nested-error-stacks.svg)](http://badge.fury.io/js/nested-error-stacks)\n\nWith this module, you can wrap a caught exception with extra context\nfor better debugging.  For example, a network error's stack would normally look\nlike this:\n\n    Error: connect ECONNREFUSED\n        at errnoException (net.js:904:11)\n        at Object.afterConnect [as oncomplete] (net.js:895:19)\n\nUsing this module, you can wrap the Error with more context to get a stack\nthat looks like this:\n\n    NestedError: Failed to communicate with localhost:8080\n        at Socket.<anonymous> (/Users/mattlavin/Projects/nested-stacks/demo.js:6:18)\n        at Socket.EventEmitter.emit (events.js:95:17)\n        at net.js:440:14\n        at process._tickCallback (node.js:415:13)\n    Caused By: Error: connect ECONNREFUSED\n        at errnoException (net.js:904:11)\n        at Object.afterConnect [as oncomplete] (net.js:895:19)\n\nHow to wrap errors\n------------------\n\nHere is an example program that uses this module to add more context to errors:\n\n```js\nvar NestedError = require('nested-error-stacks');\nvar net = require('net');\n    \nvar client = net.connect({port: 8080});\nclient.on('error', function (err) {\n    var newErr = new NestedError(\"Failed to communicate with localhost:8080\", err);\n    console.log(newErr.stack);\n});\n```\n\nHow to inherit\n--------------\n\nIt is recommended to use explicit names for Error classes. You can do it\nlike this:\n\n```js\nvar util = require('util');\nvar NestedError = require('nested-error-stacks');\n\nfunction MyError(message, nested) {\n    NestedError.call(this, message, nested);\n}\n\nutil.inherits(MyError, NestedError);\nMyError.prototype.name = 'MyError';\n```\n","_attachments":{},"homepage":"https://github.com/mdlavin/nested-error-stacks#readme","bugs":{"url":"https://github.com/mdlavin/nested-error-stacks/issues"},"license":"MIT"}