{"name":"safety-catch","version":"1.0.3","description":"Small module that makes sure your catch, caught an actual error and not a programming mistake or assertion","main":"index.js","dependencies":{},"devDependencies":{},"repository":{"type":"git","url":"git+https://github.com/mafintosh/safety-catch.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/safety-catch/issues"},"homepage":"https://github.com/mafintosh/safety-catch","gitHead":"f19ae2c2f7b0a7669ecc1347a2b9a270cb50ba41","_id":"safety-catch@1.0.3","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-Zq+J1TefpoEq/HTUabo0YXX5MNvttjWYODGohgPBO2jfko8Wqx3JYMgE823szDFVamdH5PlpByvfiWScTdSYDA==","shasum":"c99772cf7583138061b9bc23f78493422d37f846","tarball":"http://registry-npm.ywwl.com/safety-catch/download/safety-catch-1.0.3.tgz","fileCount":5,"unpackedSize":2810,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDQpbFrQPLAW74x/2CfcTxXCpCdw6r1nSCgh7EwNqzigwIgEKbbFnLjcP18Ve0WVo9Cc+Aer47HVVF6RTx4vscd6Zk="}],"size":1559,"noattachment":false,"key":"/safety-catch/-/safety-catch-1.0.3.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/safety-catch_1.0.3_1773346185346_0.2984420400553529"},"_hasShrinkwrap":false,"readme":"# safety-catch\n\nSmall module that makes sure your catch, caught an actual error and not a programming mistake or assertion.\n\n```\nnpm install safety-catch\n```\n\nTriggers an unhandled error in the next tick, when you pass it an SyntaxError, TypeError, AssertionError and other builtins.\n\n## Usage\n\n``` js\nconst safetyCatch = require('safety-catch')\n\ntry {\n  foo.bar()\n} catch (err) {\n  // Was this a programming mistake and should you crash your program?\n  // Ask the safety catch\n  safetyCatch(err)\n\n  console.log('Actual error')\n}\n```\n\n## License\n\nMIT\n","publish_time":1773346185495,"_cnpm_publish_time":1773346185495,"dist-tags":{"latest":"1.0.3"}}