{"_id":"eraro","_rev":"37-9d77d4074f779c210c42ac2bddc439b8","name":"eraro","dist-tags":{"rc0":"0.2.0","latest":"3.1.1"},"versions":{"0.1.0":{"name":"eraro","version":"0.1.0","keywords":["eraro","error"],"author":{"url":"http://richardrodger.com","name":"Richard Rodger"},"license":"MIT","_id":"eraro@0.1.0","maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"homepage":"https://github.com/rjrodger/eraro","bugs":{"url":"https://github.com/rjrodger/eraro/issues"},"dist":{"shasum":"8983e66908809ce509e02f35a545c8de050a1393","tarball":"https://registry.npmjs.org/eraro/-/eraro-0.1.0.tgz","integrity":"sha512-6NQS/PMM0toMeGP4QLXlxAiCgAYtohoXP6UfEjJWYmId5vbtpITCEopFyEgGMbUO10xEHoOXTYtuYve2vGgUNg==","signatures":[{"sig":"MEYCIQDtWJRSvgUb10JTf6mcwpv4MVhlaPsNqcFNQYl4mIP7kAIhAMSld2n6S2mgPpBUHDneHUCUH2Xk130v2+/Y73i1rczs","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"eraro.js","_from":".","scripts":{"test":"node test/eraro.test.js"},"_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"repository":{"url":"git://github.com/rjrodger/eraro.git","type":"git"},"_npmVersion":"1.4.3","description":"Create JavaScript Error objects with code strings, context details, and uncluttered stacktraces","directories":{}},"0.1.1":{"name":"eraro","version":"0.1.1","keywords":["eraro","error"],"author":{"url":"http://richardrodger.com","name":"Richard Rodger"},"license":"MIT","_id":"eraro@0.1.1","maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"homepage":"https://github.com/rjrodger/eraro","bugs":{"url":"https://github.com/rjrodger/eraro/issues"},"dist":{"shasum":"dec1743068418c849ca78dc1bd39c09ffdaa11f4","tarball":"https://registry.npmjs.org/eraro/-/eraro-0.1.1.tgz","integrity":"sha512-//OjXfnaa302auKNfJRqIw2eGOQh1vx3IeXsZTWcbbGUGMcvIUwtpIb2GY7vhdjwQZRiPp/mRb8NaEQ0Q29r5w==","signatures":[{"sig":"MEUCIHT72i+DzS2Fp05xFLLKY0vBZQB0YAcUDwce32/kjL6iAiEA6jdN4+NCsUvyTbbRTps+vJLHwh94AyHVai/VmHfmBuM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"eraro.js","_from":".","scripts":{"test":"node test/eraro.test.js"},"_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"repository":{"url":"git://github.com/rjrodger/eraro.git","type":"git"},"_npmVersion":"1.4.3","description":"Create JavaScript Error objects with code strings, context details, and uncluttered stacktraces","directories":{}},"0.1.2":{"name":"eraro","version":"0.1.2","keywords":["eraro","error"],"author":{"url":"http://richardrodger.com","name":"Richard Rodger"},"license":"MIT","_id":"eraro@0.1.2","maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"homepage":"https://github.com/rjrodger/eraro","bugs":{"url":"https://github.com/rjrodger/eraro/issues"},"dist":{"shasum":"2e8190c2c6ab1a8ef46112bf13f0be7e8d81487a","tarball":"https://registry.npmjs.org/eraro/-/eraro-0.1.2.tgz","integrity":"sha512-dS3n/ZKkOVigf5GXmHHJV9GZ3ul7wEgM+YVD7OjVnXA7s26/oL6IJal0XlNJY1+GEPLdVn0+LeUoNzBgqfFpbA==","signatures":[{"sig":"MEUCIGHoeezIMUNf/uCvfBxait5ObsMpX0Pd90/aGYMCKlvoAiEA2BJaSgycEthNMdZbxbPLNnmfE4uHDlD52t23B7A0T/Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"eraro.js","_from":".","scripts":{"test":"node test/eraro.test.js"},"_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"repository":{"url":"git://github.com/rjrodger/eraro.git","type":"git"},"_npmVersion":"1.4.3","description":"Create JavaScript Error objects with code strings, context details, and uncluttered stacktraces","directories":{}},"0.1.3":{"name":"eraro","version":"0.1.3","keywords":["eraro","error"],"author":{"url":"http://richardrodger.com","name":"Richard Rodger"},"license":"MIT","_id":"eraro@0.1.3","maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"homepage":"https://github.com/rjrodger/eraro","bugs":{"url":"https://github.com/rjrodger/eraro/issues"},"dist":{"shasum":"4fd0c82a202372d55808e588a3325c80eade9dbe","tarball":"https://registry.npmjs.org/eraro/-/eraro-0.1.3.tgz","integrity":"sha512-+mDYtltHHCJMp1/bdn/RlTHJ7XLZkZaYfRllxhhrmoaeO8Kv1XySDwvT1q96VyWm9lfyLPFWKqQBvtSsqR8Evw==","signatures":[{"sig":"MEUCIHd51N3vWheGFb5Ijg/7Z1kLQiSK4aybZTDsTkBfJAbWAiEA1tfKi1lXRtjRSM4fbDJBPvIIFWPhmnIeRquT+pP1eKo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"eraro.js","_from":".","scripts":{"test":"node test/eraro.test.js"},"_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"repository":{"url":"git://github.com/rjrodger/eraro.git","type":"git"},"_npmVersion":"1.4.3","description":"Create JavaScript Error objects with code strings, context details, and uncluttered stacktraces","directories":{}},"0.1.4":{"name":"eraro","version":"0.1.4","keywords":["eraro","error"],"author":{"url":"http://richardrodger.com","name":"Richard Rodger"},"license":"MIT","_id":"eraro@0.1.4","maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"homepage":"https://github.com/rjrodger/eraro","bugs":{"url":"https://github.com/rjrodger/eraro/issues"},"dist":{"shasum":"a3f89dbabbbace1a391a33c2616c44099051a914","tarball":"https://registry.npmjs.org/eraro/-/eraro-0.1.4.tgz","integrity":"sha512-yBF8M327A4y2w6N105yBHQm4DwrEipP9jGKHEzK+2Gl1pqz5u5PjVr4oJKoiYd4OnUfum4M3RSQsjt8M1V3Nqw==","signatures":[{"sig":"MEQCIED/FYepJrEyNySzp0xzq7OPnn5730vPriUKDSR7GsruAiA0Oxeyx1O5FK53esEq9iIvFVhMhGXJbSV9rKzPB/cFfw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"eraro.js","_from":".","files":["README.md","LICENSE.txt","eraro.js"],"scripts":{"test":"node test/eraro.test.js","docco":"docco eraro.js -o doc","jshint":"jshint eraro.js","gh-pages-doc":"cp -r doc/* ../gh-pages/eraro/doc"},"_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"repository":{"url":"git://github.com/rjrodger/eraro.git","type":"git"},"_npmVersion":"1.4.3","description":"Create JavaScript Error objects with code strings, context details, and templated messages.","directories":{},"dependencies":{"underscore":"~1.6.0"},"devDependencies":{"docco":"~0.6.3","mocha":"~1.18.2","jshint":"~2.5.0"}},"0.1.5":{"name":"eraro","version":"0.1.5","keywords":["eraro","error"],"author":{"url":"http://richardrodger.com","name":"Richard Rodger"},"license":"MIT","_id":"eraro@0.1.5","maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"homepage":"https://github.com/rjrodger/eraro","bugs":{"url":"https://github.com/rjrodger/eraro/issues"},"dist":{"shasum":"142bd296d527345bf7b42a568a61c3edc012f0b0","tarball":"https://registry.npmjs.org/eraro/-/eraro-0.1.5.tgz","integrity":"sha512-ztRXBAUlbN8fnvmOjtaqv1VObQdHDjMcgP+e/Zo7WvaI2ZUBUQ3/qWUu/HM2mhvSaj2DB/MzhTzDEqi6d8sPjQ==","signatures":[{"sig":"MEUCIC0q6bk7wR7bjZVaO03DJ10w1nFZu1eNivx6NY/NAcxOAiEAvoH0DWw+3YC7IQkjjkA7Baaspdfu0QJC0GpCi+6WcFI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"eraro.js","_from":".","files":["README.md","LICENSE.txt","eraro.js"],"scripts":{"test":"node test/eraro.test.js","docco":"docco eraro.js -o doc","jshint":"jshint eraro.js","gh-pages-doc":"cp -r doc/* ../gh-pages/eraro/doc"},"_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"repository":{"url":"git://github.com/rjrodger/eraro.git","type":"git"},"_npmVersion":"1.4.3","description":"Create JavaScript Error objects with code strings, context details, and templated messages.","directories":{},"dependencies":{"underscore":"~1.6.0"},"devDependencies":{"docco":"~0.6.3","mocha":"~1.18.2","jshint":"~2.5.0"}},"0.1.6":{"name":"eraro","version":"0.1.6","keywords":["eraro","error"],"author":{"url":"http://richardrodger.com","name":"Richard Rodger"},"license":"MIT","_id":"eraro@0.1.6","maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"homepage":"https://github.com/rjrodger/eraro","bugs":{"url":"https://github.com/rjrodger/eraro/issues"},"dist":{"shasum":"b7f60d3117c87dbf88a510466fd95349f566a3dd","tarball":"https://registry.npmjs.org/eraro/-/eraro-0.1.6.tgz","integrity":"sha512-+6f5OdK9/+Rn1QN2QOd5ov2jbPcVtK837eptPBSCSlJPMQOhP1mZkS6u7QI+l8LVgmOZssrB+0mRRcnUAEGBfg==","signatures":[{"sig":"MEYCIQDV6gYY1OVFwW1s0iLna949+DuOSjy6C6FXX0FFRhqQvAIhAIIGobrGk2i5f5UAB7BsX3WV0I3W0chEjRpuP5lJt/Da","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"eraro.js","_from":".","files":["README.md","LICENSE.txt","eraro.js"],"_shasum":"b7f60d3117c87dbf88a510466fd95349f566a3dd","scripts":{"test":"node test/eraro.test.js","docco":"docco eraro.js -o doc","jshint":"jshint eraro.js","gh-pages-doc":"cp -r doc/* ../gh-pages/eraro/doc"},"_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"repository":{"url":"git://github.com/rjrodger/eraro.git","type":"git"},"_npmVersion":"1.4.9","description":"Create JavaScript Error objects with code strings, context details, and templated messages.","directories":{},"dependencies":{"underscore":"~1.6.0"},"devDependencies":{"docco":"~0.6.3","mocha":"~1.18.2","jshint":"~2.5.0"}},"0.2.0":{"name":"eraro","version":"0.2.0","keywords":["eraro","error"],"author":{"url":"http://richardrodger.com","name":"Richard Rodger"},"license":"MIT","_id":"eraro@0.2.0","maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"homepage":"https://github.com/rjrodger/eraro","bugs":{"url":"https://github.com/rjrodger/eraro/issues"},"dist":{"shasum":"18f31c94385bd3f3b1fc76e5a1eb52391089a44c","tarball":"https://registry.npmjs.org/eraro/-/eraro-0.2.0.tgz","integrity":"sha512-7M02e8NIXDBHdNj6rtNu0rruDD4iXeD9y0azqh901NrM9E5uLx1b1WPDpGf1+23/2M7zkiCX+Ib87FWlcQeXvA==","signatures":[{"sig":"MEMCH2POrUuP6UF9rnahLpDBPXAQNve+xi8GUTz2R0+QTmECIBxuhhUifJDqkIWZQjkEpZqW4sz0PMtnbLqi6sU3Zb3j","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"eraro.js","_from":".","files":["README.md","LICENSE.txt","eraro.js"],"_shasum":"18f31c94385bd3f3b1fc76e5a1eb52391089a44c","gitHead":"2603650229fdd6c3dc0d6357d74f463cfc58e450","scripts":{"test":"node test/eraro.test.js","docco":"docco eraro.js -o doc","jshint":"jshint eraro.js","gh-pages-doc":"cp -r doc/* ../gh-pages/eraro/doc"},"_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"repository":{"url":"git://github.com/rjrodger/eraro.git","type":"git"},"_npmVersion":"1.4.23","description":"Create JavaScript Error objects with code strings, context details, and templated messages.","directories":{},"dependencies":{"underscore":"~1.7.0"},"devDependencies":{"docco":"~0.6.3","mocha":"~1.20.1","jshint":"~2.5.10"}},"0.3.0":{"name":"eraro","version":"0.3.0","keywords":["eraro","error"],"author":{"url":"http://richardrodger.com","name":"Richard Rodger"},"license":"MIT","_id":"eraro@0.3.0","maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"homepage":"https://github.com/rjrodger/eraro","bugs":{"url":"https://github.com/rjrodger/eraro/issues"},"dist":{"shasum":"89f5fed48dacba5b1d3e82d9d2ecfad62f0966ea","tarball":"https://registry.npmjs.org/eraro/-/eraro-0.3.0.tgz","integrity":"sha512-3nBOhwYrVL+v92DLLnVtQ78b9XZyea2uKdsmWBapxPY0qPYTwsCpUhitadRdvnc1Bre+NxCe9yci5zWDXrsZ+Q==","signatures":[{"sig":"MEYCIQCV/L7rWQ1toIk1H8up6DuCu1QJjsvJaWSzKgbf3aTjSAIhAONoSZzyBkUkR+afulp9htGa4eLBq+QPTUkiGf4dPmuX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"eraro.js","_from":".","files":["README.md","LICENSE.txt","eraro.js"],"_shasum":"89f5fed48dacba5b1d3e82d9d2ecfad62f0966ea","gitHead":"11ee54ba6b8f5b5966511c7e1634a4418ae6a09c","scripts":{"test":"node test/eraro.test.js","docco":"docco eraro.js -o doc","jshint":"jshint eraro.js","gh-pages-doc":"cp -r doc/* ../gh-pages/eraro/doc"},"_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"repository":{"url":"git://github.com/rjrodger/eraro.git","type":"git"},"_npmVersion":"1.4.23","description":"Create JavaScript Error objects with code strings, context details, and templated messages.","directories":{},"dependencies":{"lodash":"~2.4.1"},"devDependencies":{"docco":"~0.6.3","mocha":"~1.20.1","jshint":"~2.5.10"}},"0.4.0":{"name":"eraro","version":"0.4.0","keywords":["eraro","error"],"author":{"url":"http://richardrodger.com","name":"Richard Rodger"},"license":"MIT","_id":"eraro@0.4.0","maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"homepage":"https://github.com/rjrodger/eraro","bugs":{"url":"https://github.com/rjrodger/eraro/issues"},"dist":{"shasum":"ffca1e509f09c7d91ad18b11d6204d030326c4da","tarball":"https://registry.npmjs.org/eraro/-/eraro-0.4.0.tgz","integrity":"sha512-tbX5eeYBSQUbgW1QaJiqiukoiFhcYgIw7tIXM29KnVq7Q3LjFFnOsA1TO6UvhHQgPYHEEl9iPQG0HlpN04Op5g==","signatures":[{"sig":"MEUCIFxnOkp3cSDzWhJ2UBD2wczM4JsVnBuCeZIX87oOheJSAiEAy28FS4jVr848AlXoEC1yjwO+7zmy1oaJJWOmwdiRqik=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"eraro.js","_from":".","files":["README.md","LICENSE.txt","eraro.js"],"_shasum":"ffca1e509f09c7d91ad18b11d6204d030326c4da","gitHead":"a2403f88a20952e7bed11176a43713d56d1f16fd","scripts":{"test":"node test/eraro.test.js","docco":"docco eraro.js -o doc","jshint":"jshint eraro.js","gh-pages-doc":"cp -r doc/* ../gh-pages/eraro/doc"},"_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"repository":{"url":"git://github.com/rjrodger/eraro.git","type":"git"},"_npmVersion":"1.4.28","description":"Create JavaScript Error objects with code strings, context details, and templated messages.","directories":{},"dependencies":{"lodash":"~2.4.1"},"devDependencies":{"docco":"~0.6.3","mocha":"~1.20.1","jshint":"~2.5.10"}},"0.4.1":{"name":"eraro","version":"0.4.1","keywords":["eraro","error","exception"],"author":{"url":"http://richardrodger.com","name":"Richard Rodger"},"license":"MIT","_id":"eraro@0.4.1","maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"homepage":"https://github.com/rjrodger/eraro","bugs":{"url":"https://github.com/rjrodger/eraro/issues"},"dist":{"shasum":"6538730769a1e89ffc3f0c7e2c94d5a1f866629d","tarball":"https://registry.npmjs.org/eraro/-/eraro-0.4.1.tgz","integrity":"sha512-KnrdG9uUurK9Uv7GDfS+ZUXffPa7CxNvBFytyDKzpRZNgLNFz7JwtcxQWKIGDkHLBaHB/nqkUlsNTLnlSGmMew==","signatures":[{"sig":"MEYCIQCiuhALzRw/pK7+NsaoZDUAHTn/5hNPK+m4i0MHp90FRwIhAKM+QLVmIB6uWeUKTi7O55WTRCPVs+HYzjcI7TyUaCal","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"eraro.js","_from":".","files":["README.md","LICENSE.txt","eraro.js"],"_shasum":"6538730769a1e89ffc3f0c7e2c94d5a1f866629d","gitHead":"abbaa7863ebdf49dec0030c5888647c28e6f0f24","scripts":{"test":"./test.sh","build":"./build.sh"},"_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"repository":{"url":"git://github.com/rjrodger/eraro.git","type":"git"},"_npmVersion":"1.4.28","description":"Create JavaScript Error objects with code strings, context details, and templated messages.","directories":{},"dependencies":{"lodash":"~2.4.1"}},"1.0.0":{"name":"eraro","version":"1.0.0","keywords":["eraro","error","exception"],"author":{"url":"http://richardrodger.com","name":"Richard Rodger"},"license":"MIT","_id":"eraro@1.0.0","maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"contributors":[{"url":"https://github.com/AdrieanKhisbe","name":"Adrien Becchis"}],"homepage":"https://github.com/rjrodger/eraro","bugs":{"url":"https://github.com/rjrodger/eraro/issues"},"dist":{"shasum":"8a2167f0bc6f964200a2fcde7a386d2d5dbbf912","tarball":"https://registry.npmjs.org/eraro/-/eraro-1.0.0.tgz","fileCount":4,"integrity":"sha512-JeEqKyNgOxZNji2otWWDCDu1sWqGkrIBBhoGQH0LrPZObccQW8CoD94xkOtpmmlHeY/frG8IwR+jeCS8SQA/Xw==","signatures":[{"sig":"MEUCIQDk1A6Nf0XSP1otpiqYf5zzfrGKrIS188nTN2z2bJZWcgIgaqpMSt2auT38uycXIxT+pAlJJqybtmPd2ght6p8Lt7I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15396,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa+SX0CRA9TVsSAnZWagAAhjEP/jDWyxZ6m5rnxcRnE4y1\nglQSRH0kClZlb+b0TB3AX5mwsqIHe2IYiHG75s78b1KTM50DIimnYmv7i89v\ncrDN4LHFHuSlaVxuVfFU2IEdRSlTxMzefDeuQmngMZeC9bnAbMmBFYYaG/Mg\nAA9Qzgmve3S8U5XncOolAqIlQGUkZZTITuNp+xlAEbJJslrUkML6YOuwoeLP\nD6ozU7W/rzi6xlQkH1nRQrdumL893X2ULizLJVMaqi9/wOZYQx6B861zsrBh\nc77kkl3htcL7gGwmWH5FRLy0xGUfBE6TyYRQwqWtk8E8zUcSznoKKpwJ0u0T\n47tu9cBUFt5UWkwkil2ycZ+0YOt/wazw6fS1+wbLHTMU39t8FbK276B3IldM\nK1MUXDGZX0OGw3bxMNFZyrbFVR+iaVuycnhZinp6BUeIcg/AyHLidDyFS946\nsZ8bgYCaIhUDLHrT5zFAQdsmC/TAYWR6jqYE5ZIu83U/Ef3X5rkH9Jri4ftu\nIkNvj0cjPFCBN3QMlDhD6KGNNehxmkJ8EmH28Yeh1VkOrC9FA0sV/ri6r68/\n/3YBq3YKu+xU/7LSrlARpaRmjR88ZIbyrySscW38PgDBeGt8HYzL1sMU9Yol\ny/Fzb0PqKXR8lBg7hFfQqZp84VE65U3CbW0O8XV5tRJ4FP+TJlHwG1R0/3ib\nMzte\r\n=VVwI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"eraro.js","files":["README.md","LICENSE.txt","eraro.js"],"gitHead":"4e9433c0bc767d53cd08b6b2ba2c46a9b8e3bba5","scripts":{"test":"lab -v -P test -t 80 -I URL,URLSearchParams","coverage":"lab -s -P test -r lcov -I URL,URLSearchParams | coveralls","prettier":"prettier --write --no-semi --single-quote *.js lib/*.js test/*.js"},"_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"repository":{"url":"git://github.com/rjrodger/eraro.git","type":"git"},"_npmVersion":"6.0.1","description":"Create JavaScript Error objects with code strings, context details, and templated messages.","directories":{},"_nodeVersion":"8.10.0","dependencies":{"lodash":"4.17"},"_hasShrinkwrap":false,"devDependencies":{"lab":"14","code":"4","prettier":"1","coveralls":"3"},"_npmOperationalInternal":{"tmp":"tmp/eraro_1.0.0_1526277619295_0.2642735900759223","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"eraro","version":"1.1.0","keywords":["eraro","error","exception"],"author":{"url":"http://richardrodger.com","name":"Richard Rodger"},"license":"MIT","_id":"eraro@1.1.0","maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"contributors":[{"url":"https://github.com/AdrieanKhisbe","name":"Adrien Becchis"}],"homepage":"https://github.com/rjrodger/eraro","bugs":{"url":"https://github.com/rjrodger/eraro/issues"},"dist":{"shasum":"f53674a14aba33e5cdd89d1a72adb5fc4ed29fcb","tarball":"https://registry.npmjs.org/eraro/-/eraro-1.1.0.tgz","fileCount":4,"integrity":"sha512-Iniul1qlKYp4XHkf4H6+qGUkRYLjE6xwhIyZU6D5q5DiMgjU8uUBkOT9Y8856GkNPJ1Zw5GYN9bvER5HCN6alQ==","signatures":[{"sig":"MEYCIQDf/5Zwhm7hyOrU+4/6LT3usWtmT1DzLxuZSIHce5E5owIhAJVfzGkT9aKLgBWtMX4CZwQxnwof0GyH4MhI6Vdg1vGz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcBCs+CRA9TVsSAnZWagAAbIgQAKN1wi86BGwQidxUkxxS\nV3dpiK4+JWI1iSULaOIPJ0JtMJXKz+qf2V5TtLNhjQEoJStL2yJ4pFpcVHPW\nxnsC+mnY6oaotvHzTb9KKNUBBw9PURztKmJBAV9wg3g16oG5bu7BwwGo48XN\nf4zfUcHOla1EjQ+L5h+iYi7dnzrrLkPheqB/PGQvwu9XPNKDmkF4Y6UKtVwz\nzHxVAc9RhD7gADl2jCXlK1Un05jbxDUpj8+ibjE/7GaEPLimWMqOPjqbjcPO\nMlSYIPQDMlaqxwbyGcFEDTIFoRNnFbv6cHKhRZ/gUrMjzdvnUmGkA9im+Ltx\nfoNLKD6cW0NY62H6kc+1YW2yOkoe2QVxPv/H6e+HVQufV5zQrGMf/SLJqyLS\n/UYKMRL8mmteMXNhMWA0NtyZuBrthjySU7y+0xujWKQhvhC0VyOUTsfsGUxG\nSQhwBB2Q6Vz6zuQdCNnYlLsqXKT6yB106ChjzR6S73i21KOcg2YFmfoJjrv0\njonGMjfN1ydkpxrUzlM8kmJXrKDSEMgzjXuXU3DdtpD9a89K5Zz3OkdHEBin\n8TGz2V7tijdFfXSFmsP8oFH+KNS5s7Mbo1RIPenSFYb+5qaEpw0efSPOO4Ck\n6SnU88KXh4O9ui4KVuhp2FTjBNOWeUuyH98P2cYRMO9IPlrOYfSy6Age6/sd\nxUs5\r\n=FoaI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"eraro.js","gitHead":"90ab5f7eb1eda0d197150d3cf569b89e586f4804","scripts":{"test":"lab -v -P test -t 80 -I URL,URLSearchParams,BigUint64Array,BigInt64Array,BigInt","prettier":"prettier --write --no-semi --single-quote *.js lib/*.js test/*.js","repo-tag":"REPO_VERSION=`node -e \"console.log(require('./package').version)\"`; echo TAG: v$REPO_VERSION; git commit -a -m v$REPO_VERSION; git tag v$REPO_VERSION; git push --tags;","clean-npm":"rm -rf node_modules package-lock.json","coveralls":"lab -s -P test -r lcov -I URL,URLSearchParams | coveralls","repo-publish":"npm run repo-tag; npm publish --access public"},"_npmUser":{"name":"rjrodger","email":"richard.rodger@voxgig.com"},"repository":{"url":"git://github.com/rjrodger/eraro.git","type":"git"},"_npmVersion":"6.4.1","description":"Create JavaScript Error objects with code strings, context details, and templated messages.","directories":{},"_nodeVersion":"10.13.0","dependencies":{"lodash":"4"},"_hasShrinkwrap":false,"devDependencies":{"lab":"14","code":"5","prettier":"1","coveralls":"3"},"_npmOperationalInternal":{"tmp":"tmp/eraro_1.1.0_1543777085965_0.8899829136732187","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"eraro","version":"2.0.0","keywords":["eraro","error","exception"],"author":{"url":"http://richardrodger.com","name":"Richard Rodger"},"license":"MIT","_id":"eraro@2.0.0","maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"contributors":[{"url":"https://github.com/AdrieanKhisbe","name":"Adrien Becchis"}],"homepage":"https://github.com/rjrodger/eraro","bugs":{"url":"https://github.com/rjrodger/eraro/issues"},"dist":{"shasum":"a5ce7eb3c3147b0449684c5f12447fafbe4966d4","tarball":"https://registry.npmjs.org/eraro/-/eraro-2.0.0.tgz","fileCount":4,"integrity":"sha512-tXcFfoANGWNrWrpNRFeOUSW/0xK/YkvPMbsCcC1GIxn0tHqgC9wLhvhh5G80ci4cS44+87NYgx5DrqqkgGWbBg==","signatures":[{"sig":"MEUCIBW7PGcMuozcOkRSiWc5r0ZVpdewtiAXXlzb/3ZqLvxrAiEAiGH0zKIvVSbHEV7iWzXqpOM5lu/HGRa+gFNg2MSlqHQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16165,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd6sJ5CRA9TVsSAnZWagAAUdkQAIP36CLCp6UHn9E6qJlA\nFfFAvhlRv6+eYukoAELzouo/dayV//2NmWnlpfyEA7+M5dXbzSX0I2cUmb9r\nKx4O5uWiZS4LKLJIQRZI9ynkNFtUa4ycuI/Fh+LSLM7YHLVdSFj8CH8oBw9x\nMVxVAiW9oPJfjm/EobfFhMyvLz85D0JEqj3bh/fsjZmDCLJuFmN0LcCmf0ZB\n9fanCSVRRhnGkuftQja8pPgskc2kJOQvyiwFhHFm09v0QCGmJX7lmf11cw5p\nyF2ArkbryQZQO4rnMRhNI9bkLU/JbbvMaWgSjrDrRucOH7IUBPgJ1IUnD4Fv\nnYcGjUxkMuQd6zAtsKwTIe+o1yfD4I6a2v5fXWjh4VfDEJi3GLLtmT8Uk7pC\nkqaPU23mRUG30s0lreK4nymG4uDpfMsczF7RblAGEN9XeBTwg9HR3m2Kog5w\nZymxJi2dGQ/MCVYprFtK185b4UylmdliY9aMFzCuW/pTyBGtcte3baMFXjL5\n/f9Iqn1EMV976SGMkfcO/eJZsqWve/tAohBkEL8zkX31cuqXqUvT0vKm3Fvu\nuGiQ34jWxTCqSv4l1r/tHe6HxRplOFuCAq6e8MUmHb/hOFLSx4dMzyTebUBd\nkU8EJBZDCRuuVsb6KwWXSRXbwmq89Tw4fgfnWfXbcYabAobJ+GLqfAVI0YsK\nh8Dl\r\n=g7Ap\r\n-----END PGP SIGNATURE-----\r\n"},"main":"eraro.js","gitHead":"54cf018f5d20bf9c5e4d3676df760d9d9f11f75a","scripts":{"test":"lab -v -P test -t 80","clean":"rm -rf node_modules package-lock.json yarn.lock","reset":"npm run clean && npm i && npm test","prettier":"prettier --write --no-semi --single-quote *.js lib/*.js test/*.js","repo-tag":"REPO_VERSION=`node -e \"console.log(require('./package').version)\"` && echo TAG: v$REPO_VERSION && git commit -a -m v$REPO_VERSION && git push && git tag v$REPO_VERSION && git push --tags;","coveralls":"lab -s -P test -r lcov -I URL,URLSearchParams | coveralls","repo-publish":"npm run prettier && npm test && npm run repo-tag --registry http://registry.npmjs.org && npm publish --registry http://registry.npmjs.org "},"_npmUser":{"name":"rjrodger","email":"richard.rodger@voxgig.com"},"repository":{"url":"git://github.com/rjrodger/eraro.git","type":"git"},"_npmVersion":"6.13.1","description":"Create JavaScript Error objects with code strings, context details, and templated messages.","directories":{},"_nodeVersion":"10.15.3","dependencies":{"lodash.template":"^4.5.0"},"_hasShrinkwrap":false,"devDependencies":{"prettier":"^1.19.1","@hapi/lab":"^21.0.0","coveralls":"^3.0.9","@hapi/code":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eraro_2.0.0_1575666297003_0.9008526067172302","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"eraro","version":"2.1.0","keywords":["eraro","error","exception"],"author":{"url":"http://richardrodger.com","name":"Richard Rodger"},"license":"MIT","_id":"eraro@2.1.0","maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"contributors":[{"url":"https://github.com/AdrieanKhisbe","name":"Adrien Becchis"}],"homepage":"https://github.com/rjrodger/eraro","bugs":{"url":"https://github.com/rjrodger/eraro/issues"},"dist":{"shasum":"1ca385f9878e331f1f12022cbbd6f99faea30515","tarball":"https://registry.npmjs.org/eraro/-/eraro-2.1.0.tgz","fileCount":4,"integrity":"sha512-i8t3tkUixYL6q9gQvTqgkOok8VJCw2mr3/YfATdFcOE2pxw3MUM8Uv4B822zVDPIyIZDKx7jixr24ej3vdul2A==","signatures":[{"sig":"MEUCIQDzQThZUxC2w8ngshc/I49jT0KYp5V4IaMa/ix7lcLPAwIgWn4ttMEKVepJRLF2gRICVWzYb9LaD2SFGWZTcls+ems=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16362,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIKqxCRA9TVsSAnZWagAAhuIP/3+Hqa8sF9PatdDapiAc\nNKT5iwf+rPQZUq3skFut/1bznPcXz/tNZixMgJr/poVcHFBcc7MwjDZfKxtH\njYr5+SIWTTEHhUkrivQIdMOPTARyLh0TNTmlAKX8t5bwq0nfAPQHPVVI/1cc\nAkPQ68n0IFQ5nqb3VD8sJe39mbuy7iIZ7nZVxYUwifDHrtkGtx8pClbvaaiW\n6Md5TXZ2ABQRUApPojAGayl52xp+uuszdEJEUuWb7ja7/T1aGpAgDK1jt9Gy\nU34y/2te6nu9wEWztjk9QJRtroJBc5sF6sybWu1k9lC5WPqn0/5NVXb3ibNI\nVAIjgq7YRL1dnE6J816gmNnePmVgMYpRSMlFSaO1KKQBSa5mNTUVuUCMnZx3\nRz8CtMAwB5FlOnmOcf+rT89qRQ0JKqf1wfJANOem0/qyvOBp0obmzc8+XyPR\n4Tssz+PtqWnFTOktuheR8rpi6n4FcIsxYUSgFaK6jMezvcYauYL7d4YhEDzK\nZymUGce8BRoB4W6/VsDIE5vBDVdTIVIoOm/nbIq27WRn7O//dkbMmH5y/lMq\nKmDTrOS9hniYuNEBLcIWXy+nBanLBn44TnOukTcafhRqhmwH43BOGk92Jnen\nVRxhFxkx29UZigp9T4mswdthLkoxVFFMV6AdphDWgEar7c1pxImFIbECoW59\nMGF2\r\n=QiJX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"eraro.js","gitHead":"2255e68a4dd4a1c4eaf3415e51124b97380e877a","scripts":{"test":"lab -L -v -P test -t 80","clean":"rm -rf node_modules package-lock.json yarn.lock","reset":"npm run clean && npm i && npm test","prettier":"prettier --write --no-semi --single-quote *.js lib/*.js test/*.js","repo-tag":"REPO_VERSION=`node -e \"console.log(require('./package').version)\"` && echo TAG: v$REPO_VERSION && git commit -a -m v$REPO_VERSION && git push && git tag v$REPO_VERSION && git push --tags;","coveralls":"lab -s -P test -r lcov -I URL,URLSearchParams | coveralls","repo-publish":"npm run prettier && npm test && npm run repo-tag --registry http://registry.npmjs.org && npm publish --registry http://registry.npmjs.org "},"_npmUser":{"name":"rjrodger","email":"richard.rodger@voxgig.com"},"repository":{"url":"git://github.com/rjrodger/eraro.git","type":"git"},"_npmVersion":"6.13.1","description":"Create JavaScript Error objects with code strings, context details, and templated messages.","directories":{},"_nodeVersion":"10.15.3","dependencies":{"lodash.template":"^4.5.0"},"_hasShrinkwrap":false,"devDependencies":{"prettier":"^1.19.1","@hapi/lab":"^21.0.0","coveralls":"^3.0.9","@hapi/code":"^8.0.1"},"_npmOperationalInternal":{"tmp":"tmp/eraro_2.1.0_1579199152751_0.5171307853063993","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"eraro","version":"3.0.1","keywords":["eraro","error","exception"],"author":{"url":"http://richardrodger.com","name":"Richard Rodger"},"license":"MIT","_id":"eraro@3.0.1","maintainers":[{"name":"rjrodger","email":"richard.rodger@voxgig.com"}],"contributors":[{"url":"https://github.com/AdrieanKhisbe","name":"Adrien Becchis"}],"homepage":"https://github.com/rjrodger/eraro","bugs":{"url":"https://github.com/rjrodger/eraro/issues"},"dist":{"shasum":"b6ef747788287390ed6416671fb25a1b5d92608e","tarball":"https://registry.npmjs.org/eraro/-/eraro-3.0.1.tgz","fileCount":4,"integrity":"sha512-rMCSYZ0RHNUHAIZ7qjMEZzPFfSJJh4X4bw0Wt4mnBeAp7qH/HmwxWuh7XQHRARlY0Wfx0on2iZMG6jBGVfbW2A==","signatures":[{"sig":"MEYCIQDX+uwsitNiQzJ6pI1LJgpU5/30/lr66yqJ7LhV4q/YpAIhAOcaw4V4imuoSzi3XOLTzjfsML1HmTCCaZ8xuxFzaIFg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15748},"main":"eraro.js","gitHead":"2987c78fba88150232b56faa991f0fd79ea04327","scripts":{"test":"jest --coverage","clean":"rm -rf node_modules package-lock.json yarn.lock","reset":"npm run clean && npm i && npm test && npm audit --production","prettier":"prettier --write --no-semi --single-quote *.js test/*.js","repo-tag":"REPO_VERSION=`node -e \"console.log(require('./package').version)\"` && echo TAG: v$REPO_VERSION && git commit -a -m v$REPO_VERSION && git push && git tag v$REPO_VERSION && git push --tags;","test-some":"jest -t","test-watch":"jest --coverage --watchAll","repo-publish":"npm run reset && npm run repo-publish-quick","repo-publish-quick":"npm run prettier && npm test && npm run repo-tag --registry http://registry.npmjs.org && npm publish --registry https://registry.npmjs.org "},"_npmUser":{"name":"rjrodger","email":"richard.rodger@voxgig.com"},"repository":{"url":"git://github.com/rjrodger/eraro.git","type":"git"},"_npmVersion":"8.5.0","description":"Create JavaScript Error objects with code strings, context details, and templated messages.","directories":{},"_nodeVersion":"16.14.2","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","prettier":"^3.0.3","coveralls":"^3.1.1"},"_npmOperationalInternal":{"tmp":"tmp/eraro_3.0.1_1699192484223_0.9998303126186385","host":"s3://npm-registry-packages"}},"3.1.0":{"name":"eraro","version":"3.1.0","keywords":["eraro","error","exception"],"author":{"url":"http://richardrodger.com","name":"Richard Rodger"},"license":"MIT","_id":"eraro@3.1.0","maintainers":[{"name":"rjrodger","email":"richard.rodger@voxgig.com"}],"contributors":[{"url":"https://github.com/AdrieanKhisbe","name":"Adrien Becchis"}],"homepage":"https://github.com/rjrodger/eraro","bugs":{"url":"https://github.com/rjrodger/eraro/issues"},"dist":{"shasum":"feb289caadcf7666f9a1b39bb3111c51563799a5","tarball":"https://registry.npmjs.org/eraro/-/eraro-3.1.0.tgz","fileCount":5,"integrity":"sha512-S8jL/kG9h/PKCDoZjPuWG0LIxj13TaMdjLDZgL6a1oTK5JJ1aCBo5m1pZEtx8Nc+C4UD3CZfWqUowtaenYDgZQ==","signatures":[{"sig":"MEUCIF6kkFz3J6XahBlgk20pI1zhdIOHc/PW6xaHzswwkc5AAiEAyLWpl4jOCLG9DVXIbK9FRj7f7xGM4+o9OkWD6lR3g00=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14880},"main":"dist/eraro.js","types":"dist/eraro.d.ts","gitHead":"ef5240fec0d51f2f345d4af9aa4eaa919a0807a3","scripts":{"test":"npm run build && node --test","build":"tsc","clean":"rm -rf node_modules package-lock.json yarn.lock dist","reset":"npm run clean && npm i && npm test && npm audit --production","repo-tag":"REPO_VERSION=`node -e \"console.log(require('./package').version)\"` && echo TAG: v$REPO_VERSION && git commit -a -m v$REPO_VERSION && git push && git tag v$REPO_VERSION && git push --tags;","test-some":"node --test --test-name-pattern","repo-publish":"npm run reset && npm run repo-publish-quick","repo-publish-quick":"npm test && npm run repo-tag --registry http://registry.npmjs.org && npm publish --registry https://registry.npmjs.org "},"_npmUser":{"name":"rjrodger","email":"richard.rodger@voxgig.com"},"repository":{"url":"git://github.com/rjrodger/eraro.git","type":"git"},"_npmVersion":"11.6.2","description":"Create JavaScript Error objects with code strings, context details, and templated messages.","directories":{},"_nodeVersion":"24.11.1","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.7.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eraro_3.1.0_1771418111507_0.35525562055633975","host":"s3://npm-registry-packages-npm-production"}},"3.1.1":{"_id":"eraro@3.1.1","bugs":{"url":"https://github.com/rjrodger/eraro/issues"},"dist":{"shasum":"c6dd5cdf197498e0578165984fb7fdd6d82ca628","tarball":"https://registry.npmjs.org/eraro/-/eraro-3.1.1.tgz","integrity":"sha512-hwZswkKjcfXjnG5/C3B5pDhcLIXn8UCJERmEj5Fx4aKBDAJa6Fmlzg9JuacGZ9o2xIa5+MnRTl9qm5i2njRAFg==","fileCount":5,"unpackedSize":15243,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEInHaqtu5YkUiPC1u48oWoQIi6pu+Qj6oSWxOprcsnTAiEAmj/PdtTZ3McUHDNoPtpCZ5uPyWVTf8634RFYIOOqAj4="}]},"main":"dist/eraro.js","name":"eraro","types":"dist/eraro.d.ts","author":{"url":"http://richardrodger.com","name":"Richard Rodger"},"gitHead":"1b045cc0e0e5b4b2ee7d2a58445b2c4b3f7f1135","license":"MIT","scripts":{"test":"npm run build && node --test","build":"tsc","clean":"rm -rf node_modules package-lock.json yarn.lock dist","reset":"npm run clean && npm i && npm test && npm audit --production","repo-tag":"REPO_VERSION=`node -e \"console.log(require('./package').version)\"` && echo TAG: v$REPO_VERSION && git commit -a -m v$REPO_VERSION && git push && git tag v$REPO_VERSION && git push --tags;","test-some":"node --test --test-name-pattern","repo-publish":"npm run reset && npm run repo-publish-quick","repo-publish-quick":"npm test && npm run repo-tag --registry http://registry.npmjs.org && npm publish --registry https://registry.npmjs.org "},"version":"3.1.1","_npmUser":{"name":"rjrodger","email":"richard.rodger@voxgig.com","approver":{"name":"rjrodger","email":"richard.rodger@voxgig.com"}},"homepage":"https://github.com/rjrodger/eraro","keywords":["eraro","error","exception"],"repository":{"url":"git://github.com/rjrodger/eraro.git","type":"git"},"_npmVersion":"11.18.0","description":"Create JavaScript Error objects with code strings, context details, and templated messages.","directories":{},"maintainers":[{"name":"rjrodger","email":"richard.rodger@voxgig.com"}],"_nodeVersion":"24.14.1","contributors":[{"url":"https://github.com/AdrieanKhisbe","name":"Adrien Becchis"}],"devDependencies":{"typescript":"^5.7.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eraro_3.1.1_1785600024962_0.31534918185624927"},"_hasShrinkwrap":false}},"time":{"created":"2014-04-23T19:36:34.409Z","modified":"2026-08-01T16:00:25.223Z","0.1.0":"2014-04-23T19:36:34.409Z","0.1.1":"2014-04-24T11:37:20.615Z","0.1.2":"2014-04-24T16:52:13.184Z","0.1.3":"2014-04-29T16:03:05.164Z","0.1.4":"2014-05-25T05:44:31.944Z","0.1.5":"2014-05-25T07:29:00.626Z","0.1.6":"2014-06-07T12:19:07.304Z","0.2.0":"2014-12-15T16:45:10.892Z","0.3.0":"2015-01-05T18:44:19.072Z","0.4.0":"2015-01-08T16:10:08.739Z","0.4.1":"2015-01-27T12:32:26.497Z","1.0.0":"2018-05-14T06:00:19.398Z","1.1.0":"2018-12-02T18:58:06.129Z","2.0.0":"2019-12-06T21:04:57.133Z","2.1.0":"2020-01-16T18:25:52.868Z","3.0.1":"2023-11-05T13:54:44.373Z","3.1.0":"2026-02-18T12:35:11.650Z","3.1.1":"2026-08-01T16:00:25.062Z"},"bugs":{"url":"https://github.com/rjrodger/eraro/issues"},"author":{"url":"http://richardrodger.com","name":"Richard Rodger"},"license":"MIT","homepage":"https://github.com/rjrodger/eraro","keywords":["eraro","error","exception"],"repository":{"url":"git://github.com/rjrodger/eraro.git","type":"git"},"description":"Create JavaScript Error objects with code strings, context details, and templated messages.","contributors":[{"url":"https://github.com/AdrieanKhisbe","name":"Adrien Becchis"}],"maintainers":[{"name":"rjrodger","email":"richard.rodger@voxgig.com"}],"readme":"eraro\n=====\n\n[![npm version][npm-badge]][npm-url]\n[![build](https://github.com/rjrodger/eraro/actions/workflows/build.yml/badge.svg)](https://github.com/rjrodger/eraro/actions/workflows/build.yml)\n[![Coverage Status][coveralls-badge]][coveralls-url]\n[![DeepScan grade](https://deepscan.io/api/teams/5016/projects/25452/branches/796922/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=5016&pid=25452&bid=796922)\n[![Maintainability](https://api.codeclimate.com/v1/badges/d07c5eb44d302778bc18/maintainability)](https://codeclimate.com/github/rjrodger/eraro/maintainability)\n\n\n\n#### Create JavaScript Error objects with code strings, context details, and templated messages.\n\nFor use in library modules to generate contextual errors with useful\nmeta data. Your library module can throw or pass (to a callback) an\n_Error_ object that has additional properties, such as a _code_, that\ncan be used for programmatic inspection by client code that uses your\nlibrary.\n\nIf you're using this module, feel free to contact me on twitter if you have any questions! :) [@rjrodger](http://twitter.com/rjrodger)\n\n\n# Quick example\n\n```JavaScript\n\nvar error = require('eraro')({package:'mylib'})\n\n// throw an Error object that has a code\nthrow error('code_string')\n\n// provide a user message\nthrow error('code_string', 'Message text.')\n\n// supply context details for error\nthrow error('code_string', 'Message text.', {foo:1, bar:2})\n\n// extend an existing Error object\nvar ex = new Error('Another message.')\nthrow error(ex,'code_string',{zed:3})\n```\n\nIn all these cases, the Error object will have a `code`` property with\nvalue `\"code_string\"`.\n\n\n# Install\n\n```bash\nnpm install eraro\n```\n\nThere's an [npm module page for eraro](https://www.npmjs.org/package/eraro).\n\n\n# Usage\n\nUse this module when you are writing a library that will be used by\napplication code. It allows your library to generate informative error messages.\n\nThe module itself is a generator function (taking options) that\nreturns the error-creating function that you will actually use. Thus\nthe most common way to use _eraro_ is to require and call immediately:\n\n```JavaScript\nvar error = require('eraro')({package:'mylib'})\n```\n\nThe `error` function can then be used in your library code. The\n`error` function generates `Error` objects, which can be thrown or used in callbacks:\n\n```JavaScript\nthrow error('code1')\n\nfunction doStuff (input, callback) {\n  if (bad(input)) return callback(error('code2'));\n}\n```\n\nThe `package` option is normally the name of your library. That is, the value\nof the `name` property in `package.json`. The generated Error object will\nhave two properties to define the package: `package`, a string that is\nthe name of the package, and also a boolean, the name of the package itself.\nThis lets you check for the type of error easily:\n\n```JavaScript\nvar error = require('eraro')({package:'mylib'})\n\nvar err0 = error('code0')\n\"mylib\" === err0.package // true\nerr0.mylib // true\n```\n\n\n## Error details\n\nYou can supply additional contextual details for debugging or other\npurposes. These are placed inside the _details_ property of the\ngenerated Error:\n\n```JavaScript\nvar error = require('eraro')({package:'mylib'})\n\nvar err0 = error('code0', {foo: 'FOO', bar: 'BAR'})\n\"FOO\" === err0.details.foo\n\"BAR\" === err0.details.bar\n```\n\n\n## Error codes and message templates\n\nTo provide consistent error messages to your users, you can define a set of message templates, keyed by code:\n\n```JavaScript\nvar error = require('eraro')({package: 'mylib', msgmap: {\n  code0: \"The first error, foo is <%=foo%>.\",\n  code1: \"The second error, bar is <%=bar%>.\",\n}})\n```\n\nWhen you specify a code, and details, these are inserted into the message (if any) associated with that code:\n\n```JavaScript\nvar err0 = error('code0',{foo: 'FOO', bar: 'BAR'})\n\"mylib: The first error, foo is FOO.\" === err0.message\n```\n\nThe message templates are [underscorejs templates](http://underscorejs.org/#template)\nwith the default settings.\n\nIf you specify a message directly, this is also interpreted as a template:\n\n```JavaScript\nvar err0 = error('code2',\n                 'My custom message, details: <%=util.inspect(zed)%>',\n                 {zed: {a: 1, b: 2}})\n\"mylib: My custom message, details: { a: 1, b: 2 }\" === err0.message\n```\n\nMessage templates always have the original error message and first\nstack line details available as: `message: <%=errmsg%>, line:\n<%=errline%>`.\n\n\n# The returned Error object\n\nThe returned Error object has the following additional properties:\n\n   * `code`: String; the code string\n   * `package`: String; the package name\n   * **`package-name`**: Boolean (true); a convenience marker for the package\n   * `msg`: String; the generated message, may differ from original exception message (if any)\n   * `details`: Object; contextual details of error\n   * `callpoint`: String; first line of stacktrace that is external to eraro and calling module\n\nYou can pass in an existing Error object. The additional properties\nwill be added to it, but the original message will be used as the\nmessage template, overriding any matching code message.\n\n\n# Options\n\nWhen creating an `error` function, you can use the following options:\n\n   * `package` : (_optional_) String; package name to mark Error objects\n   * `prefix`  : (_optional_) Boolean/String; If false, then no prefix is used; If not defined, the package name is used\n   * `module`  : (_optional_) Object; `module` object to use as starting point for `require` calls\n   * `msgmap`  : (_optional_) Object; map codes to message templates\n   * `inspect` : (_optional_) Boolean; If true, `util.inspect` is called on values; default: true.\n\n\n# In the Wild\n\nFor real-world usage examples, see:\n\n  * _[use-plugin](http://github.com/rjrodger/use-plugin)_: a utility for providing a plugin interface for extensions to your module\n  * _[seneca](http://github.com/rjrodger/seneca)_: a micro-services framework for Node.js\n\n\n[npm-badge]: https://badge.fury.io/js/eraro.svg\n[npm-url]: https://badge.fury.io/js/eraro\n[travis-badge]: https://api.travis-ci.org/rjrodger/eraro.svg\n[travis-url]: https://travis-ci.org/rjrodger/eraro\n[coveralls-badge]:https://coveralls.io/repos/rjrodger/eraro/badge.svg?branch=master&service=github\n[coveralls-url]: https://coveralls.io/github/rjrodger/eraro?branch=master\n[david-badge]: https://david-dm.org/rjrodger/eraro.svg\n[david-url]: https://david-dm.org/rjrodger/eraro\n\n","readmeFilename":"README.md","users":{"bojand":true,"leonning":true,"rjrodger":true}}