{"_id":"nodeerrors","_rev":"55-bad4334a79ae8bcf23de7c24cb32ea3c","name":"nodeerrors","description":"error handling module for node","dist-tags":{"latest":"2.1.3"},"versions":{"1.0.0":{"author":{"name":"Allan Ebdrup"},"name":"nodeerrors","version":"1.0.0","repository":{"type":"git","url":"https://github.com/Muscula/nodeerrors"},"private":false,"main":"./lib/nodeerrors.js","engines":{"node":">=0.6.20","npm":">=1.1.9"},"dependencies":{"underscore":"~1.3.1"},"scripts":{"test":"node ./bin/runTests.js","cov":"node ./bin/runCoverage.js"},"devDependencies":{"mocha":"","chai":"","sinon":"","sinon-chai":"","jshint":"","nodecoverage":">=0.6.5","requiremock":">=1.3.3"},"_id":"nodeerrors@1.0.0","description":"nodeerror\r ---------\r This is a library for handling errors more efficiently in ```node.js```, especially made for people like me\r who use function hoisting most of the time to avoid some of the so-called \"callback hell\".","dist":{"shasum":"2031a9f9d98bcf4da5f245e0e111a15df6b37768","tarball":"https://registry.npmjs.org/nodeerrors/-/nodeerrors-1.0.0.tgz","integrity":"sha512-OGBoGB6th1TIazS+qn5JUuCBZrlDIZkyqWeukt5VYtvJFK36hTsnTDUJUB2BiE1qriWePzbrDZB8eoD8pSzA+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgy1Zv+1CoEZJ2bM7gd39zbrHv/cQPH4GrZwIC3iLaLgIgYtyrSx1G0ZN4QXtXmyZKa3mGQ7XOnPhgf3U2ub9+zVM="}]},"maintainers":[{"name":"Muscula","email":"allan@878.dk"}],"directories":{}},"1.0.1":{"author":{"name":"Allan Ebdrup"},"name":"nodeerrors","version":"1.0.1","repository":{"type":"git","url":"https://github.com/Muscula/nodeerrors"},"private":false,"main":"./lib/nodeerrors.js","engines":{"node":">=0.6.20","npm":">=1.1.9"},"dependencies":{"underscore":"~1.3.1"},"scripts":{"test":"node ./bin/runTests.js","cov":"node ./bin/runCoverage.js"},"devDependencies":{"mocha":"","chai":"","sinon":"","sinon-chai":"","jshint":"","nodecoverage":">=0.6.5","requiremock":">=1.3.3"},"_id":"nodeerrors@1.0.1","description":"nodeerror\r ---------\r This is a library for handling errors more efficiently in ```node.js```, especially made for people like me\r who use function hoisting most of the time to avoid some of the so-called \"callback hell\".","dist":{"shasum":"ec9d648dd170dd0ab48c35e54e5f593f486bf972","tarball":"https://registry.npmjs.org/nodeerrors/-/nodeerrors-1.0.1.tgz","integrity":"sha512-FUZDVSQZQu9x1yHm1h7ipbaqxufebCKH9OWcKNn9veQISC9lZ2oDCAMCtztFZ9WP63WC5sx9lpoQeyyREhmG8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbCPkKxRKWAh58+5FefE6zu4WcuKsokc7YkkLwIKdtYAIhAMaS8ty5VZGbyz55C4oqw7TrEpcES1GxUl0LVemxqLMA"}]},"maintainers":[{"name":"Muscula","email":"allan@878.dk"}],"directories":{}},"1.0.2":{"author":{"name":"Allan Ebdrup"},"name":"nodeerrors","version":"1.0.2","repository":{"type":"git","url":"https://github.com/Muscula/nodeerrors"},"private":false,"main":"./lib/nodeerrors.js","engines":{"node":">=0.6.20","npm":">=1.1.9"},"dependencies":{"underscore":"~1.3.1"},"scripts":{"test":"node ./bin/runTests.js","cov":"node ./bin/runCoverage.js"},"devDependencies":{"mocha":"","chai":"","sinon":"","sinon-chai":"","jshint":"","nodecoverage":">=0.6.5","requiremock":">=1.3.3"},"_id":"nodeerrors@1.0.2","description":"nodeerror\r ---------\r This is a library for handling errors more efficiently in ```node.js```, especially made for people like me\r who use function hoisting most of the time to avoid some of the so-called \"callback hell\".","dist":{"shasum":"567531c024f4e2c6a7e1c9b398b2e18e98f79ff3","tarball":"https://registry.npmjs.org/nodeerrors/-/nodeerrors-1.0.2.tgz","integrity":"sha512-hiognxnGG7OJ6SMCBVdLYfg1n6FtDEFhXbhcVlfIZUspPPHrIuLY+9cMghaztRUgXniY2hMuh8Y6VPVGAvvDkw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqagAClLVZurtOg91vtcWNSZM3nmqvXIWB9dIUZGsQewIgUhlVAgHn8J7qHq1Ix36RY4xvllmL7bqHUCn6keQYJbQ="}]},"maintainers":[{"name":"Muscula","email":"allan@878.dk"}],"directories":{}},"1.0.3":{"author":{"name":"Allan Ebdrup"},"name":"nodeerrors","version":"1.0.3","repository":{"type":"git","url":"https://github.com/Muscula/nodeerrors"},"private":false,"main":"./lib/nodeerrors.js","engines":{"node":">=0.6.20","npm":">=1.1.9"},"dependencies":{"underscore":"~1.3.1"},"scripts":{"test":"node ./bin/runTests.js","cov":"node ./bin/runCoverage.js"},"devDependencies":{"mocha":"","chai":"","sinon":"","sinon-chai":"","jshint":"","nodecoverage":">=0.6.5","requiremock":">=1.3.3"},"_id":"nodeerrors@1.0.3","description":"nodeerror\r ---------\r This is a library for handling errors more efficiently in ```node.js```, especially made for people like me\r who use function hoisting most of the time to avoid some of the so-called \"callback hell\".","dist":{"shasum":"0b60f7112c4d3260b47f52e9454f54072c89552e","tarball":"https://registry.npmjs.org/nodeerrors/-/nodeerrors-1.0.3.tgz","integrity":"sha512-GGU5se2o0VRJEnEpf+gd6cnSNmMMd4AlTSasbdICE4K4mKRZbmc4tkLT5txA810Dhtj9GzD1DB4YpOHOQwEaXg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA1tZaIXwF907K10M6LzuGEDCZ0BDi9Tvtgovvh+fhYfAiBOJj/tsC26RNhN0XOELy80C3slVYfXPF3ceMq14b4sug=="}]},"maintainers":[{"name":"Muscula","email":"allan@878.dk"}],"directories":{}},"1.0.4":{"author":{"name":"Allan Ebdrup"},"name":"nodeerrors","description":"error handling module for node","version":"1.0.4","repository":{"type":"git","url":"https://github.com/Muscula/nodeerrors"},"private":false,"main":"./lib/nodeerrors.js","engines":{"node":">=0.6.20","npm":">=1.1.9"},"dependencies":{"underscore":"~1.3.1"},"scripts":{"test":"node ./bin/runTests.js","cov":"node ./bin/runCoverage.js"},"devDependencies":{"mocha":"","chai":"","sinon":"","sinon-chai":"","jshint":"","nodecoverage":">=0.6.5","requiremock":">=1.3.3"},"_id":"nodeerrors@1.0.4","dist":{"shasum":"d4940bfb5313688c2db2797fd7036574f0cc6400","tarball":"https://registry.npmjs.org/nodeerrors/-/nodeerrors-1.0.4.tgz","integrity":"sha512-K+jsQ5pM7bZUTkAtl9LIlbsDviLHZw7O9TiXaQeLEi2MwAuCfJpZNzX0fB6wqLfH81iMkGQlRfOySDeP8bwxPg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH3nWOGHBgV1UAAbiXKuNxyXF1FzCcV2sZSruZpgSP+aAiEAkj0+mhlLNoCLvIWFjWjd3wEsnWLr0rO/VPt6Qt5eA1c="}]},"maintainers":[{"name":"Muscula","email":"allan@878.dk"}],"directories":{}},"1.1.0":{"author":{"name":"Allan Ebdrup"},"name":"nodeerrors","description":"error handling module for node","version":"1.1.0","repository":{"type":"git","url":"https://github.com/Muscula/nodeerrors"},"private":false,"main":"./lib/nodeerrors.js","engines":{"node":">=0.6.20","npm":">=1.1.9"},"dependencies":{"underscore":"~1.3.1","node-uuid":"~1.4.0"},"scripts":{"test":"node ./bin/runTests.js"},"devDependencies":{"mocha":"","chai":"","sinon":"","sinon-chai":"","jshint":"","requiremock":">=1.3.3"},"_id":"nodeerrors@1.1.0","dist":{"shasum":"50ef55f167d9936877159544b93e526d63c3a724","tarball":"https://registry.npmjs.org/nodeerrors/-/nodeerrors-1.1.0.tgz","integrity":"sha512-58TXkXdtdAUfdiTjOfccFE97lFoAgOZMmluB0WRltQbfF6WyWb8L3o8ThhaYPocdnd0+qmOat9C5093Pbc5JCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDONErBYj8Jh4vGVg8+z3dIdex1yeesJDKEIUM68M7qmQIhAL1aGGJr1OEIpXfEoRcAmrdjF+6CR3x/FQGglevjJXgy"}]},"_npmVersion":"1.1.66","_npmUser":{"name":"muscula","email":"allan@878.dk"},"maintainers":[{"name":"muscula","email":"allan@878.dk"}],"directories":{}},"1.1.1":{"author":{"name":"Allan Ebdrup"},"name":"nodeerrors","description":"error handling module for node","version":"1.1.1","repository":{"type":"git","url":"https://github.com/Muscula/nodeerrors"},"private":false,"main":"./lib/nodeerrors.js","engines":{"node":">=0.6.20","npm":">=1.1.9"},"dependencies":{"underscore":"~1.3.1","node-uuid":"~1.4.0"},"scripts":{"test":"node ./bin/runTests.js"},"devDependencies":{"mocha":"","chai":"","sinon":"","sinon-chai":"","jshint":"","requiremock":">=1.3.3"},"_id":"nodeerrors@1.1.1","dist":{"shasum":"44aaff7ebe591cef3d4b94ce6c547c16d6e7207e","tarball":"https://registry.npmjs.org/nodeerrors/-/nodeerrors-1.1.1.tgz","integrity":"sha512-xcgqebLJo8FfMz2W5qie/8nlq648eV+oyb5fvJRPqp/Zhf5nPah/J5T3ciO4lVjhLnOEc0AAfCvpwPkuBAX+mw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYQ2NHsluGCW8RG3XzJ3U6gOzBIMEFxbYAjVz1wCFiEwIhAP6n6daGVkeAAOz1wUrlc0q5o76riTvdeaN1uOYCnau7"}]},"_npmVersion":"1.1.66","_npmUser":{"name":"muscula","email":"allan@878.dk"},"maintainers":[{"name":"muscula","email":"allan@878.dk"}],"directories":{}},"1.1.2":{"author":{"name":"Allan Ebdrup"},"name":"nodeerrors","description":"error handling module for node","version":"1.1.2","repository":{"type":"git","url":"https://github.com/Muscula/nodeerrors"},"private":false,"main":"./lib/nodeerrors.js","engines":{"node":">=0.6.20","npm":">=1.1.9"},"dependencies":{"underscore":"~1.3.1","node-uuid":"~1.4.0"},"scripts":{"test":"node ./bin/runTests.js"},"devDependencies":{"mocha":"","chai":"","sinon":"","sinon-chai":"","jshint":"","requiremock":">=1.3.3"},"_id":"nodeerrors@1.1.2","dist":{"shasum":"3a1751194d1491428e667dafc68b2312ac524f8b","tarball":"https://registry.npmjs.org/nodeerrors/-/nodeerrors-1.1.2.tgz","integrity":"sha512-Iade5n/QeDF37eo4I7A5h1iJnvN/iZ3sv3Wo0CcpdGfOFkfb/SqMNWXmevyFJrXJzOHekQkybu39GD2saC/5HQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH+YePQCNE4tsfgO9srR6lp+je2Mq7GOgyNeSkvw7iOnAiEA0JAQo4uqnyo/67IuZqajCmnQnD/dhnAOPZb4h7cKx2g="}]},"_npmVersion":"1.1.63","_npmUser":{"name":"muscula","email":"allan@878.dk"},"maintainers":[{"name":"muscula","email":"allan@878.dk"}],"directories":{}},"1.1.3":{"author":{"name":"Allan Ebdrup"},"name":"nodeerrors","description":"error handling module for node","version":"1.1.3","repository":{"type":"git","url":"https://github.com/Muscula/nodeerrors"},"private":false,"main":"./lib/nodeerrors.js","engines":{"node":">=0.6.20","npm":">=1.1.9"},"dependencies":{"underscore":"~1.3.1","node-uuid":"~1.4.0"},"scripts":{"test":"node ./bin/runTests.js"},"devDependencies":{"mocha":"","chai":"","sinon":"","sinon-chai":"","jshint":"","requiremock":">=1.3.3","request":""},"_id":"nodeerrors@1.1.3","dist":{"shasum":"f458274d3a80361fdea5702d58e6d3ab8b11a1f2","tarball":"https://registry.npmjs.org/nodeerrors/-/nodeerrors-1.1.3.tgz","integrity":"sha512-xFg5/QCR5WWUMT7z0Ch1Dc3eExRi9ESwQtVObuBV1jzY+KEtY6s91xm+A1sfLM8DTuney/Mayb8BmhqErXROSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFqbXQYNDrzNu+lU/AX94phdv7dp8jHlgTa5qwxjbR+fAiBd3FxsMgCDVyEywHXQboTfyM5oV1Z4sow+binHNMTkNw=="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"muscula","email":"allan@878.dk"},"maintainers":[{"name":"muscula","email":"allan@878.dk"}],"directories":{}},"1.2.0":{"author":{"name":"Allan Ebdrup"},"name":"nodeerrors","description":"error handling module for node","version":"1.2.0","repository":{"type":"git","url":"https://github.com/Muscula/nodeerrors"},"private":false,"main":"./lib/nodeerrors.js","engines":{"node":">=0.6.20","npm":">=1.1.9"},"dependencies":{"underscore":"~1.3.1","node-uuid":"~1.4.0"},"scripts":{"test":"node ./bin/runTests.js"},"devDependencies":{"mocha":"","chai":"","sinon":"","sinon-chai":"","jshint":"","requiremock":">=1.3.3","request":""},"_id":"nodeerrors@1.2.0","dist":{"shasum":"7af73756e6b8a3778b3dd02a1e6935e29e500a55","tarball":"https://registry.npmjs.org/nodeerrors/-/nodeerrors-1.2.0.tgz","integrity":"sha512-G/oPTHj2lHCztmTFJ4g9ElOqdSQImj9cDwFb4CMc0rP28R7CmToS8exgZx0+NAfFobWxuphfSt0VRcDdxmjrow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHRGlfOEBSbBX8Sy5uXKj0QnV+UOgnSqsLwAPCeI6/7/AiEA/eQu+eklBzhNWvTG+Ei4xAJV0vF9I9Ryw264GK53Kk4="}]},"_npmVersion":"1.1.63","_npmUser":{"name":"muscula","email":"allan@878.dk"},"maintainers":[{"name":"muscula","email":"allan@878.dk"}],"directories":{}},"2.0.0":{"author":{"name":"Allan Ebdrup"},"name":"nodeerrors","description":"error handling module for node","version":"2.0.0","repository":{"type":"git","url":"https://github.com/Muscula/nodeerrors"},"private":false,"main":"./lib/nodeerrors.js","engines":{"node":">=0.6.20","npm":">=1.1.9"},"dependencies":{"underscore":"~1.3.1","node-uuid":"~1.4.0"},"scripts":{"test":"node ./bin/runTests.js"},"devDependencies":{"mocha":"","chai":"","sinon":"","sinon-chai":"","jshint":"","requiremock":">=1.3.3","request":""},"gitHead":"985c718ebf69fc91205c6c40d0a46ce49c717f2b","bin":{"nodeerrors":"runTests.js"},"directories":{"test":"test"},"keywords":["error","handling"],"license":"APACHE 2.0","_id":"nodeerrors@2.0.0","dist":{"shasum":"61ba890cb0dbbcde23baefb9bdeb54892005520e","tarball":"https://registry.npmjs.org/nodeerrors/-/nodeerrors-2.0.0.tgz","integrity":"sha512-gcYetXSPm3FccwJMl5Q6D6wmkNKxKymRs6alt0n1sJVksBLA1q9ZCOt8DsiCU46yIP921PNSm5AphPLwh2Nn+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbUJ4HboXPtQ4++fC0CXBeXx5Fl68kbbfsLoQ6jqkPKwIgOONTpw41ouCO2I8QM05Pv7DZicSr5lTLk6x1twrFgKw="}]},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"muscula","email":"allan@878.dk"},"maintainers":[{"name":"muscula","email":"allan@878.dk"}]},"2.0.1":{"author":{"name":"Allan Ebdrup"},"name":"nodeerrors","description":"error handling module for node","version":"2.0.1","repository":{"type":"git","url":"https://github.com/Muscula/nodeerrors"},"private":false,"main":"./lib/nodeerrors.js","engines":{"node":">=0.6.20","npm":">=1.1.9"},"dependencies":{"underscore":"~1.3.1","node-uuid":"~1.4.0"},"scripts":{"test":"node ./bin/runTests.js"},"devDependencies":{"mocha":"","chai":"","sinon":"","sinon-chai":"","jshint":"0.x","request":""},"gitHead":"985c718ebf69fc91205c6c40d0a46ce49c717f2b","directories":{"test":"test"},"keywords":["error","handling"],"license":"APACHE V2.0","_id":"nodeerrors@2.0.1","dist":{"shasum":"693661b5eee3d9799e3af298ee407f26a2e05885","tarball":"https://registry.npmjs.org/nodeerrors/-/nodeerrors-2.0.1.tgz","integrity":"sha512-NJ7tGIjrhJ6yCY5Ydn2rF/Zj/hNJE4Q4YZfeRI61XlDCoki+hk8QshF5cuUiMQXtbth+BMKYvU5p12Dp4d+q+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHXnXPsnWCH/nxE+V6DuAnEOmpWOYQGVxiCyOiG2AY90AiBI1vTv+/57qA2sRUt/BCOLlZlSPik2LC/n//eciLUIkQ=="}]},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"muscula","email":"allan@878.dk"},"maintainers":[{"name":"muscula","email":"allan@878.dk"}]},"2.0.2":{"author":{"name":"Allan Ebdrup"},"name":"nodeerrors","description":"error handling module for node","version":"2.0.2","repository":{"type":"git","url":"https://github.com/Muscula/nodeerrors"},"private":false,"main":"./lib/nodeerrors.js","engines":{"node":">=0.6.20","npm":">=1.1.9"},"dependencies":{"underscore":"~1.3.1","node-uuid":"~1.4.0","moduleconfig":""},"scripts":{"test":"node ./bin/runTests.js"},"devDependencies":{"mocha":"","chai":"","sinon":"","sinon-chai":"","jshint":"0.x","request":""},"gitHead":"985c718ebf69fc91205c6c40d0a46ce49c717f2b","directories":{"test":"test"},"keywords":["error","handling"],"license":"APACHE V2.0","_id":"nodeerrors@2.0.2","dist":{"shasum":"a0c0156e78bc4dc6250a6924c29dbd6a8691bc43","tarball":"https://registry.npmjs.org/nodeerrors/-/nodeerrors-2.0.2.tgz","integrity":"sha512-VJVmyy9MR7uL0NKwUGEXb93OBBxNwIpHJuJyM9AF3ErzyS51slKYTZlt6Vt32o/rcEc2gIUk/Y1WFwy7f56gBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyPz+xKWNs8cstdvBc5iErF/D3Vzv5LE08sdeNH3HKRwIgcHpVOCeoFAvQ2hZiRhNa6VdAbBicwFfcV1xr5RSkKPw="}]},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"muscula","email":"allan@878.dk"},"maintainers":[{"name":"muscula","email":"allan@878.dk"}]},"2.0.3":{"author":{"name":"Allan Ebdrup"},"name":"nodeerrors","description":"error handling module for node","version":"2.0.3","repository":{"type":"git","url":"https://github.com/Muscula/nodeerrors"},"private":false,"main":"./lib/nodeerrors.js","engines":{"node":">=0.6.20","npm":">=1.1.9"},"dependencies":{"underscore":"","node-uuid":">=1.4.0","moduleconfig":""},"scripts":{"test":"node ./bin/runTests.js"},"devDependencies":{"mocha":"","chai":"","sinon":"","sinon-chai":"","jshint":"0.x","request":""},"gitHead":"985c718ebf69fc91205c6c40d0a46ce49c717f2b","directories":{"test":"test"},"keywords":["error","handling"],"license":"APACHE V2.0","_id":"nodeerrors@2.0.3","dist":{"shasum":"5a3f87bbb0cc4ddfa95d0775e2d1ea2f5884caee","tarball":"https://registry.npmjs.org/nodeerrors/-/nodeerrors-2.0.3.tgz","integrity":"sha512-PeiTvso9lNBu8EYfVE59T7OQ5jkrgJ7yQu6hD27ZDwJHywQftVNXtT6QtAIYiY1fKRRBr7rP36pm64yReVSNMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8vHOLNy+D7VbjrjcPWL6u1/k7vrWiHjy5lRjlFXxYLQIgMP+ZqJJGMhPnqzWayXwdwXOJj4kdFzzZiyYL0b86+fQ="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"muscula","email":"allan@878.dk"},"maintainers":[{"name":"muscula","email":"allan@878.dk"}]},"2.0.4":{"author":{"name":"Allan Ebdrup"},"name":"nodeerrors","description":"error handling module for node","version":"2.0.4","repository":{"type":"git","url":"https://github.com/Muscula/nodeerrors"},"private":false,"main":"./lib/nodeerrors.js","engines":{"node":">=0.6.20","npm":">=1.1.9"},"dependencies":{"underscore":"","node-uuid":">=1.4.0","moduleconfig":""},"scripts":{"test":"node test.js"},"devDependencies":{"mocha":"","chai":"","sinon":"","sinon-chai":"","mocha-jshint":"","request":""},"gitHead":"985c718ebf69fc91205c6c40d0a46ce49c717f2b","directories":{"test":"test"},"keywords":["error","handling"],"license":"APACHE V2.0","bugs":{"url":"https://github.com/Muscula/nodeerrors/issues"},"homepage":"https://github.com/Muscula/nodeerrors","_id":"nodeerrors@2.0.4","dist":{"shasum":"689e5710cb4a85249981ebaec33fb8677ab20bcd","tarball":"https://registry.npmjs.org/nodeerrors/-/nodeerrors-2.0.4.tgz","integrity":"sha512-1qhVUpAPy5be+n3iwM4iHRqf7WyOXQKZOzj2z8vYB53ZFhWK9GyGJ21KA4gpvKPGnjMbWWS+8n/dHhYj5N1knA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOAjiNQYyrIYdg0nMjuWBjK7eF6bDIppQ9SrFq5aWhfQIhAPRLL6whZVoCfpoe5VnJFsilMROJxzTIOvp2xpu2/zfR"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"muscula","email":"allan@muscula.com"},"maintainers":[{"name":"muscula","email":"allan@878.dk"}]},"2.1.0":{"author":{"name":"Allan Ebdrup"},"name":"nodeerrors","description":"error handling module for node","version":"2.1.0","repository":{"type":"git","url":"https://github.com/Muscula/nodeerrors"},"private":false,"main":"./lib/nodeerrors.js","engines":{"node":">=0.6.20","npm":">=1.1.9"},"dependencies":{"underscore":"","node-uuid":">=1.4.0","moduleconfig":""},"scripts":{"test":"node test.js"},"devDependencies":{"mocha":"","chai":"","sinon":"","sinon-chai":"","mocha-jshint":"","request":""},"gitHead":"985c718ebf69fc91205c6c40d0a46ce49c717f2b","directories":{"test":"test"},"keywords":["error","handling"],"license":"APACHE V2.0","bugs":{"url":"https://github.com/Muscula/nodeerrors/issues"},"homepage":"https://github.com/Muscula/nodeerrors","_id":"nodeerrors@2.1.0","dist":{"shasum":"bcd69dfffaa391e6ba83040d0a45e0ebf0cb2680","tarball":"https://registry.npmjs.org/nodeerrors/-/nodeerrors-2.1.0.tgz","integrity":"sha512-LYhqgJQ7f1GQBsKDjphZxtpDx7yzRFhr3S99UJqD5OK3YiNhT/CsJgG+Ci54smuMSCwoq9NroKVh3E5tvsu0+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxSlhMAE3XCTr9Tt+TkrC5u6et3S7oVQFo5KLsT4Vd2wIgK1qzrCGBhPB2acFxDTGkGZwp4g6GrJIL/cwDQpMJ8pc="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"muscula","email":"allan@muscula.com"},"maintainers":[{"name":"muscula","email":"allan@878.dk"}]},"2.1.1":{"author":{"name":"Allan Ebdrup"},"name":"nodeerrors","description":"error handling module for node","version":"2.1.1","repository":{"type":"git","url":"git+https://github.com/Muscula/nodeerrors.git"},"private":false,"main":"./lib/nodeerrors.js","engines":{"node":">=0.10.0"},"dependencies":{"underscore":"^1.8.3","node-uuid":"^1.4.7","moduleconfig":"^2.0.0"},"scripts":{"test":"istanbul cover _mocha","coveralls":"cat ./coverage/lcov.info | coveralls"},"devDependencies":{"chai":"^3.5.0","coveralls":"^2.11.6","istanbul":"^0.4.2","mocha":"^2.4.5","mocha-jshint":"^2.3.1","request":"^2.69.0","sinon":"^1.17.3","sinon-chai":"^2.8.0"},"gitHead":"985c718ebf69fc91205c6c40d0a46ce49c717f2b","directories":{"test":"test"},"keywords":["error","handling"],"license":"MIT","bugs":{"url":"https://github.com/Muscula/nodeerrors/issues"},"homepage":"https://github.com/Muscula/nodeerrors#readme","_id":"nodeerrors@2.1.1","_shasum":"7dc6488d3ff195fb3b9175e9a95023bc1022d717","_from":".","_npmVersion":"3.7.1","_nodeVersion":"4.2.0","_npmUser":{"name":"ebdrup","email":"allan@878.dk"},"dist":{"shasum":"7dc6488d3ff195fb3b9175e9a95023bc1022d717","tarball":"https://registry.npmjs.org/nodeerrors/-/nodeerrors-2.1.1.tgz","integrity":"sha512-kEVfN7n3HStuMsTM4pM0JNrefq9KBorZm5cxkA21ICEHTxFu2U1xbZ+bJDQcp/z0nCT0ib0mbuBNXZA5vDAE5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFkIWK7e3oVjqBYMO2eLXyfDtU40XM+XmNshZqjZFdf8AiEAuP+bw7jMPUMVG9SziyJMSusLUVcHBtk+ND2L/HRX2JE="}]},"maintainers":[{"name":"ebdrup","email":"allan@878.dk"},{"name":"bifrost","email":"dan@steenbjerg.com"},{"name":"bubenshchykov","email":"a.bubenshchykov@gmail.com"},{"name":"eagleeye","email":"eagleeyes91@gmail.com"},{"name":"kapetan","email":"mirza.kapetanovic@gmail.com"},{"name":"wtfil","email":"evgen.filatov@gmail.com"},{"name":"mpushkin","email":"mfbeast@mail.ru"},{"name":"jonatanpedersen","email":"jp@jonatanpedersen.com"},{"name":"fizker","email":"benjamin@fizkerinc.dk"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/nodeerrors-2.1.1.tgz_1454838350184_0.05356324347667396"}},"2.1.2":{"author":{"name":"Allan Ebdrup"},"name":"nodeerrors","description":"error handling module for node","version":"2.1.2","repository":{"type":"git","url":"git+https://github.com/Muscula/nodeerrors.git"},"private":false,"main":"./lib/nodeerrors.js","engines":{"node":">=0.10.0"},"dependencies":{"underscore":"^1.8.3","node-uuid":"^1.4.7","moduleconfig":"^2.0.0"},"scripts":{"test":"istanbul cover _mocha","coveralls":"cat ./coverage/lcov.info | coveralls"},"devDependencies":{"chai":"^3.5.0","coveralls":"^2.11.6","istanbul":"^0.4.2","mocha":"^2.4.5","mocha-jshint":"^2.3.1","request":"^2.69.0","sinon":"^1.17.3","sinon-chai":"^2.8.0"},"directories":{"test":"test"},"keywords":["error","handling"],"license":"MIT","gitHead":"53702e8caa87093c7ec0926ecb60298f7cdb9307","bugs":{"url":"https://github.com/Muscula/nodeerrors/issues"},"homepage":"https://github.com/Muscula/nodeerrors#readme","_id":"nodeerrors@2.1.2","_shasum":"1841a2b313711e3e6db080276f189f6406b695e7","_from":".","_npmVersion":"3.7.1","_nodeVersion":"4.2.0","_npmUser":{"name":"eagleeye","email":"eagleeyes91@gmail.com"},"dist":{"shasum":"1841a2b313711e3e6db080276f189f6406b695e7","tarball":"https://registry.npmjs.org/nodeerrors/-/nodeerrors-2.1.2.tgz","integrity":"sha512-23904Grb7vdRr9ZZb9ufOvVaDCcaBqGntiRRew/jv0lL9V4Nfz4s5T+DsBR8hVtaylZ62SRlppCqhmACDYETww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICDyP/1w0QvY1kYpblLNaBRmifwSPLjaBye1MDU/gQemAiEA1KhJ7TKNvvzQRgjq9eOcEK1CWQevKck57tlYlKunbfg="}]},"maintainers":[{"name":"ebdrup","email":"allan@878.dk"},{"name":"bifrost","email":"dan@steenbjerg.com"},{"name":"bubenshchykov","email":"a.bubenshchykov@gmail.com"},{"name":"eagleeye","email":"eagleeyes91@gmail.com"},{"name":"kapetan","email":"mirza.kapetanovic@gmail.com"},{"name":"wtfil","email":"evgen.filatov@gmail.com"},{"name":"mpushkin","email":"mfbeast@mail.ru"},{"name":"jonatanpedersen","email":"jp@jonatanpedersen.com"},{"name":"fizker","email":"benjamin@fizkerinc.dk"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/nodeerrors-2.1.2.tgz_1456220142979_0.9716273285448551"}},"2.1.3":{"author":{"name":"Allan Ebdrup"},"name":"nodeerrors","description":"error handling module for node","version":"2.1.3","repository":{"type":"git","url":"git+https://github.com/Muscula/nodeerrors.git"},"private":false,"main":"./lib/nodeerrors.js","engines":{"node":">=0.10.0"},"dependencies":{"moduleconfig":"^2.0.0","underscore":"^1.8.3","uuid":"^3.0.1"},"scripts":{"test":"istanbul cover _mocha","coveralls":"cat ./coverage/lcov.info | coveralls"},"devDependencies":{"chai":"^3.5.0","coveralls":"^2.11.6","istanbul":"^0.4.2","mocha":"^2.4.5","mocha-jshint":"^2.3.1","request":"^2.69.0","sinon":"^1.17.3","sinon-chai":"^2.8.0"},"directories":{"test":"test"},"keywords":["error","handling"],"license":"MIT","gitHead":"cf32c1aed1dc2c6d2f89a586dc28a0e68e2b3a9e","bugs":{"url":"https://github.com/Muscula/nodeerrors/issues"},"homepage":"https://github.com/Muscula/nodeerrors#readme","_id":"nodeerrors@2.1.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"jonatanpedersen","email":"jp@jonatanpedersen.com"},"dist":{"integrity":"sha512-MqAwAY2EdFP08lvz8HBWBIVbmKbM9GTNSKt6bNlEICz6SOWX3pzNcrAbjKzX7ZEzJxy1YiHhRp20EqK8E85ThA==","shasum":"042d9494c2399c775bf5d81c0a37f7618ca38464","tarball":"https://registry.npmjs.org/nodeerrors/-/nodeerrors-2.1.3.tgz","fileCount":26,"unpackedSize":119200,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa8gpiCRA9TVsSAnZWagAAOpcP/0XX56xwp57DPg3K5SjX\no7XoXeYstb0q74gA7F6o7603DTo+UQXxFXQeIVJsZrn4eNgt0XNuXU9DgBRD\nu1jNpkZRLkcSRg++pbDire2ZOajFTt46Na6oPbxUu0AWerEd1b6VPtMZug/9\nIS3VdUCCXQRmaHg2/iLrf+MNBEkrSz5QI4/wR0oLzVaZafpA3T05rDbofXNa\nmzdFK90aGmAb+uwHhopi9bz05+yLnTgawj+O77k0zuAdCQ7J9TjuBZSo16j5\nbewMUKJWLwz2vt1nEnVYWC5OKup8M4On1sDt9+ngpfFOP7PfYMspjMLmlIhT\nzF7O7iiJFxH2vISCbvR0yqKK7eRlnQEzEQ5fXFLOn2X489GVdXV7fNW8jA3X\nF/vSAKmiSUSb9v7zTph9OQPTYW3BGPfk4BWUjQgRtFSWfYztP5pSGJHar0du\nGT52O3hOl6S4L+J2jPQOKDpGRWhZ7fvEFovT08eT26incpul1Q2kMMPCMkPq\nIl0rOV8XHOZjH9KF5khiRubN6FswYTTUgd+lSRMKh9z0/Wo509tg9JHMtbB4\noripRsays2Hs5pazM7vdzgqkbwfvzwfCxbQpMSPN1+vMULcqdPOLqU24s5O1\np7kc2SuiWkJwq5tJ0TQCS98sSv5BiuQuQk31HcHByydKUFGBiZyUTxXMPea4\niTXD\r\n=EIYT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1kPiiLZOwA+ZUqUrOAufvp8bH26NcNe2J/moi6om2PAIhAIie2RCfS9OiO9pdh4IGNhooY/LbNqH+kqmus/DUx0MI"}]},"maintainers":[{"email":"dan@steenbjerg.com","name":"bifrost"},{"email":"a.bubenshchykov@gmail.com","name":"bubenshchykov"},{"email":"eagleeyes91@gmail.com","name":"eagleeye"},{"email":"allan@878.dk","name":"ebdrup"},{"email":"npm@fizkerinc.dk","name":"fizker"},{"email":"jp@jonatanpedersen.com","name":"jonatanpedersen"},{"email":"mirza.kapetanovic@gmail.com","name":"kapetan"},{"email":"mfbeast@mail.ru","name":"mpushkin"},{"email":"evgen.filatov@gmail.com","name":"wtfil"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nodeerrors_2.1.3_1525811809873_0.3387982275580528"},"_hasShrinkwrap":false}},"readme":"nodeerrors\n----------\nThis is a library for handling errors more efficiently in ```node.js```, especially made for people like me\nwho use function hoisting most of the time to avoid some of the so-called \"callback hell\".\n\n[![Build Status](https://travis-ci.org/ebdrup/nodeerrors.png)](https://travis-ci.org/ebdrup/nodeerrors) [![NPM version](https://badge.fury.io/js/nodeerrors.png)](http://badge.fury.io/js/nodeerrors) [![Dependency Status](https://gemnasium.com/ebdrup/nodeerrors.png)](https://gemnasium.com/ebdrup/nodeerrors) [![Coverage Status](https://coveralls.io/repos/ebdrup/nodeerrors/badge.svg?branch=master&service=github)](https://coveralls.io/github/ebdrup/nodeerrors?branch=master)\n\nInstallation\n------------\n```\nnpm install nodeerrors\n```\n\nSpecifying you own errors\n-------------------------\nYou specify your own error types by adding the file ```.errors.js``` in the root folder of your project or in\n```config/.errors.js```. Here is an example of a ```.errors.js``` file:\n\n```js\nmodule.exports = {\n\t\"system\":{\n\t\tmessage:\"Internal server error\",\n\t\thttp:500\n\t},\n\t\"notUnique\":{\n\t\tmessage:\"The property \\\"%s\\\" is not unique. The value \\\"%s\\\" already exists.\",\n\t\targs:[\"propertyName\", \"propertyValue\"],\n\t\thttp:400\n\t},\n\t\"propertyNotDefined\":{\n\t\tmessage:\"The property named \\\"%s\\\" should be defined\",\n\t\targs:[\"propertyName\"],\n\t\thttp:400\n\t}\n};\n```\n\nwith the file above, you will be able to use your own errors like this:\n```js\nvar errors = require(\"nodeerrors\");\n\ncallback(errors.notUnique(\"someProperty\", \"somePropertyValue\")); //call callback with 'notUnique' error\n```\nNotice that ```errors.notUnique``` takes the two parameters ```propertyName``` and ```propertyValue``` as defined in\nthe ```args``` property above.\n\nAlso these two parameters are automatically inserted into the error message where there is a ```%s```.\n\n\nYou will also be able to do like this:\n```js\nvar errors = require(\"nodeerrors\");\n\ncallback(errors.propertyNotDefined(\"someProperty\")); //call callback with 'propertyNotDefined' error\n```\nNotice that ```propertyNotDefined``` only takes a single argument, because there is only one argument defined in\n```args```. You can even leave out ```args``` altogether, if your error does not take arguments.\n\n\nParsing errors\n-----------------------------------------\nWhen you want an error to JSON.stringify-able (handle cyclic references), you should parse it with the ```parse```\nfunction.\n\n- The `parse` function is useful when you want to log the error to a service like loggly.com or similar.\n- The `parse` function is useful if you want to return an error message to the client from an API. If you parse the error and\nremove the properties `stack` and `internal` everything else should be safe to send to the client. You can also remove\nthe property `http` and use it for a http status code in your response.\n\nIf you are passed an error in your own callback, you can parse it like this:\n\n```js\nvar errors = require(\"nodeerrors\");\n\nfunction (err, data){\n\tif(err){\n\t\terrorObject = errors.parse(err);\n\t\t//...\n\t}\n}\n```\nThe ```errorObject``` variable will now contain\n```javascript\n{\n\t\"code\": \"propertyNotDefined\",\n\t\"http\": 400,\n\t\"propertyName\": \"someProperty\",\n\t\"message\": \"The property named \\\"someProperty\\\" should be defined\",\n\t\"stack\": \"[call stack of Error]\",\n\t\"id\": \"1cbf5dab-4630-4d09-b779-2c721e571859\",\n\t\"internal\": {\n\t\t//...\n\t}\n}\n```\n\nNote that you can parse any error, also errors passed to you from third party libraries.\nErrors from third party libraries are wrapped in a ```system``` error, and the original error will be\nin ```internal.innerError```. This is done, in order not to pass sensitive internal error information to the client.\nAfter you `parse` an error, all you need to do is remove the `stack` and `internal` properties, everything else should\n be safe to send to the client.\n\nAlso note that each when parsing an error it will be given a uuid in the property ```id``` (if it does not already have\na `id`-property). You can use this when you log the error and want to look up a specific error.\n\nAdding extra internal values\n----------------------------\nYou can always add an extra parameter, when you create an error. So if we take the ```propertyNotDefined``` example\nfrom above, that took only one parameter, we can do this:\n```js\nvar errors = require(\"nodeerrors\");\n\ncallback(errors.propertyNotDefined(\n\t\"someProperty\",\n\t{notice:\"This should NEVER happen\"} //extra internal parameter\n));\n```\nThis extra parameter will be added to the errors internal parameter. So when we parse the error:\n\n```js\nvar errors = require(\"nodeerrors\");\n\nfunction (err, data){\n\tif(err){\n\t\t//...\n\t}\n}\n```\nThe ```err``` variable will now contain:\n```json\n{\n\t\"code\": \"propertyNotDefined\",\n\t\"http\": 400,\n\t\"propertyName\": \"someProperty\",\n\t\"message\": \"The property named \\\"someProperty\\\" should be defined\",\n\t\"stack\": \"[call stack of Error]\"\n\t\"id\": \"1cbf5dab-4630-4d09-b779-2c721e571859\"\n\t\"internal\": {\n\t\t\"notice\":\"This should NEVER happen\"\n\t}\n}\n```\nNote, you should always pass JSON serializable objects as the extra parameter.\n\ninnerError\n----------\nWhen you are passed an error, you sometimes wrap it in your own error, perhaps grouping different error types into\none kind of error you return. When you do this, you can save the original error using ```.innerError``` on the Error\nobject (```Error.prototype``` has been extended). So you can do something like this:\n\n```js\nvar errors = require(\"nodeerrors\");\nvar errorCodes = errors.errorCodes;\n\nfunction handleDocument(err, document){\n\tif(err){\n\t\tif(err.code = errorCodes.fileNotFound){\n \t\t\treturn callback(errors.mySpecialError().innerError(err));\n \t\t}\n \t\treturn callback(err);\n \t}\n}\n```\n\nThis returns a ```mySpecialError``` with the ```fileNotFound``` error as an inner error.\n\nonError\n-------\nInstead of writing\n\n```js\nreturn mongoCollection.findOne({}, handleDocument);\n\nfunction handleDocument(err, document){\n\tif(err){\n    \treturn callback(err);\n\t}\n    //...\n}\n```\n\n\nAfter you require ```nodeerrors``` anywhere (Function.prototype has been extended), you can write:\n\n```js\nreturn mongoCollection.findOne({}, handleDocument.onError(callback));\n\nfunction handleDocument(err, document){\n    //...\n}\n```\nIf ```findOne``` returns an error, it will automatically be sent to ```callback```.\nYou no longer need to handle the error in the ```handleDocument``` function, it will always be falsy\n(probably ```null```)\n\n\nTry catch is inserted around the function that has onError called.\nThis means that the following code will not result in an uncaught exception. Instead the error will be passed to\n```callback```, for error handling.\n\n```js\nreturn mongoCollection.findOne({}, handleDocument.onError(callback));\n\nfunction handleDocument(err, document){\n    throw new Error(\"some error\");\n}\n```\n\nExpress compatible error handling middleware\n--------------------------------------------\nTBA :-)\n","maintainers":[{"email":"allan@878.dk","name":"ebdrup"},{"email":"a.bubenshchykov@gmail.com","name":"bubenshchykov"},{"email":"mirza.kapetanovic@gmail.com","name":"kapetan"},{"email":"evgen.filatov@gmail.com","name":"wtfil"},{"email":"eagleeyes91@gmail.com","name":"eagleeye"},{"email":"jp@jonatanpedersen.com","name":"jonatanpedersen"},{"email":"dan@steenbjerg.com","name":"bifrost"},{"email":"mfbeast@mail.ru","name":"mpushkin"}],"time":{"modified":"2024-04-03T14:10:53.808Z","created":"2012-07-29T16:55:46.510Z","1.0.0":"2012-07-29T16:55:49.401Z","1.0.1":"2012-07-29T19:03:43.317Z","1.0.2":"2012-07-29T19:05:54.832Z","1.0.3":"2012-08-05T19:28:51.001Z","1.0.4":"2012-08-28T19:49:51.802Z","1.1.0":"2012-12-13T08:12:19.487Z","1.1.1":"2012-12-13T11:05:31.192Z","1.1.2":"2012-12-16T15:37:48.574Z","1.1.3":"2013-01-07T15:32:56.837Z","1.2.0":"2013-02-05T21:27:33.435Z","2.0.0":"2013-03-05T08:52:49.576Z","2.0.1":"2013-03-05T09:31:17.401Z","2.0.2":"2013-03-05T14:50:29.582Z","2.0.3":"2013-05-21T06:46:55.339Z","2.0.4":"2013-12-01T20:43:55.274Z","2.1.0":"2014-08-23T07:27:53.743Z","2.1.1":"2016-02-07T09:45:51.300Z","2.1.2":"2016-02-23T09:35:47.073Z","2.1.3":"2018-05-08T20:36:49.953Z"},"author":{"name":"Allan Ebdrup"},"repository":{"type":"git","url":"git+https://github.com/Muscula/nodeerrors.git"},"users":{"fgribreau":true},"homepage":"https://github.com/Muscula/nodeerrors#readme","keywords":["error","handling"],"bugs":{"url":"https://github.com/Muscula/nodeerrors/issues"},"license":"MIT","readmeFilename":"readme.md"}