{"_id":"fh-health","_rev":"32-7494ebe0382af75574b139c3bc2ca655","name":"fh-health","description":"A wrapper to add a health endpoint to your cloud application based on nodeapp.","dist-tags":{"latest":"0.3.3"},"versions":{"0.0.0":{"name":"fh-health","version":"0.0.0","description":"A wrapper to add a health endpoint to your cloud application based on nodeapp.","main":"./index.js","scripts":{"test":"mocha ./test.js"},"keywords":["feedhenry","fh","fh-health","health"],"repository":{"type":"git","url":"git@github.com:evanshortiss/fh-health.git"},"author":{"name":"Evan Shortiss"},"dependencies":{"async":"*","request":"2.29.0"},"bugs":{"url":"https://github.com/evanshortiss/fh-health/issues"},"_id":"fh-health@0.0.0","dist":{"shasum":"5a6eb1065b97a377ec49e0263af296e106c7b039","tarball":"https://registry.npmjs.org/fh-health/-/fh-health-0.0.0.tgz","integrity":"sha512-DlTEgTmEnZTTJfbPqrIwkUQ2z+5EUL1Pt5UdzJsNisute1Q4hJDoyDXzUndTx/mzpMY3jhLgogZar79Yhj4/CA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8FZX00bBQ9UxnlDo2RBgUsnt4Yx6uvnofsAs6O80KVwIgcR2O9mX7yulXEYp2020RH0Z5wHsoFtJrF6jvi9bs++E="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"evanshortiss","email":"evanshortiss@gmail.com"},"maintainers":[{"name":"evanshortiss","email":"evanshortiss@gmail.com"}]},"0.0.1":{"name":"fh-health","version":"0.0.1","description":"A wrapper to add a health endpoint to your cloud application based on nodeapp.","main":"./index.js","scripts":{"test":"mocha ./test.js"},"keywords":["feedhenry","fh","fh-health","health"],"repository":{"type":"git","url":"git@github.com:evanshortiss/fh-health.git"},"author":{"name":"Evan Shortiss"},"dependencies":{"async":"*","request":"2.29.0"},"bugs":{"url":"https://github.com/evanshortiss/fh-health/issues"},"homepage":"https://github.com/evanshortiss/fh-health","_id":"fh-health@0.0.1","dist":{"shasum":"e96f774f56bb7b36d13034784b92d34e089576d0","tarball":"https://registry.npmjs.org/fh-health/-/fh-health-0.0.1.tgz","integrity":"sha512-Gp0E/kMdkHYXzhpzQcZvB1+0v0SX+6nZYA2WuUw7i9lL1BZSInpKS9/IpzevMdNggizbM4FiLw7By29DKohiHw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG/pnrjdzllvLBAob4TcLSgjREnQ3Pcu+zZJDlIJ78tWAiAl23oDLPQppvrlmQOKNYZu/LWbv2Xh1k5XVzlDM/2Meg=="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"evanshortiss","email":"evanshortiss@gmail.com"},"maintainers":[{"name":"evanshortiss","email":"evanshortiss@gmail.com"}]},"0.0.2":{"name":"fh-health","version":"0.0.2","description":"A wrapper to add a health endpoint to your cloud application based on nodeapp.","main":"./index.js","scripts":{"test":"mocha ./test.js"},"keywords":["feedhenry","fh","fh-health","health"],"repository":{"type":"git","url":"git@github.com:evanshortiss/fh-health.git"},"author":{"name":"Evan Shortiss"},"dependencies":{"async":"0.2.9"},"bugs":{"url":"https://github.com/evanshortiss/fh-health/issues"},"homepage":"https://github.com/evanshortiss/fh-health","_id":"fh-health@0.0.2","dist":{"shasum":"36436b327e80b3af03e03f048f21989ab8c21ec5","tarball":"https://registry.npmjs.org/fh-health/-/fh-health-0.0.2.tgz","integrity":"sha512-6Z7yUJhaMDM29NjJiqzHsL7s2Z9y3tLOA/LZTPZG90dribpHQfz17s1ebw6PcVsw++WutQVdhEtCHHFO/061rg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICZlVdpa1RaJCoKd1btF4pKHDRnz7NoyfShOU1a4RujJAiBHme44qVfqioIjj9n8BzYTD8WIykqTYvTZSZkvJmR7bQ=="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"evanshortiss","email":"evanshortiss@gmail.com"},"maintainers":[{"name":"evanshortiss","email":"evanshortiss@gmail.com"}]},"0.0.3":{"name":"fh-health","version":"0.0.3","description":"A wrapper to add a health endpoint to your cloud application based on nodeapp.","main":"./index.js","scripts":{"test":"mocha ./test.js"},"keywords":["feedhenry","fh","fh-health","health"],"repository":{"type":"git","url":"git@github.com:evanshortiss/fh-health.git"},"author":{"name":"Evan Shortiss"},"dependencies":{"async":"0.2.9"},"bugs":{"url":"https://github.com/evanshortiss/fh-health/issues"},"homepage":"https://github.com/evanshortiss/fh-health","_id":"fh-health@0.0.3","dist":{"shasum":"32f199fc85faf3a6e7e452d5e40aa616716b21a0","tarball":"https://registry.npmjs.org/fh-health/-/fh-health-0.0.3.tgz","integrity":"sha512-cJ9ome3dkf95Q181YRdnXm2YTjkO6y2bl7Y5zod07JhHMbAL/7m8i58uNliepE3GybCRlJJB4oSDff1rpojwUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSZdktM3Tvd4GB6PWUoiIyGS+ySt1CjT4PsjE4aIr+MAIgd4cf1pHLPfeFZEsdM3S4+uv4iC+iVHA2LFt7UdX5QiM="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"evanshortiss","email":"evanshortiss@gmail.com"},"maintainers":[{"name":"evanshortiss","email":"evanshortiss@gmail.com"}]},"0.0.4":{"name":"fh-health","version":"0.0.4","description":"A wrapper to add a health endpoint to your cloud application based on nodeapp.","main":"./index.js","scripts":{"test":"mocha ./test.js"},"keywords":["feedhenry","fh","fh-health","health"],"repository":{"type":"git","url":"git@github.com:evanshortiss/fh-health.git"},"author":{"name":"Evan Shortiss"},"dependencies":{"async":"0.2.9"},"bugs":{"url":"https://github.com/evanshortiss/fh-health/issues"},"homepage":"https://github.com/evanshortiss/fh-health","_id":"fh-health@0.0.4","dist":{"shasum":"aa491aeb983e1f443a76e4a38dbc861b48168489","tarball":"https://registry.npmjs.org/fh-health/-/fh-health-0.0.4.tgz","integrity":"sha512-Gs4YW1JlWuHQsDCZgRVfJCAZXezAYQ4njS8CMEz4X/cXtQ5E+DO9SgVtTutqsNC+ZDrjlwnnzu+dtSTpUyq16w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEaSrHnNVxdr98gtxnz01wQIC/uDwj5tQSU3mkY+fu1dAiEA0jAs3xtRjBgiEWB5fwEJvxXQDUQUtnVv7wN05z7MAU8="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"evanshortiss","email":"evanshortiss@gmail.com"},"maintainers":[{"name":"evanshortiss","email":"evanshortiss@gmail.com"}]},"0.0.41":{"name":"fh-health","version":"0.0.41","description":"A wrapper to add a health endpoint to your cloud application based on nodeapp.","main":"./index.js","scripts":{"test":"mocha ./test.js"},"keywords":["feedhenry","fh","fh-health","health"],"repository":{"type":"git","url":"git@github.com:evanshortiss/fh-health.git"},"author":{"name":"Evan Shortiss"},"dependencies":{"async":"0.2.9"},"bugs":{"url":"https://github.com/evanshortiss/fh-health/issues"},"homepage":"https://github.com/evanshortiss/fh-health","_id":"fh-health@0.0.41","dist":{"shasum":"f6d47b2d66f27a3cba5c61de728b417f7225b40c","tarball":"https://registry.npmjs.org/fh-health/-/fh-health-0.0.41.tgz","integrity":"sha512-ip3PG5L7v82oLO7NXm5DlHuiXLZnBtomPe4ZPuBdzVZbGmrUVq4nZ4sStMpbLhfl+ZHyqses+GzgfRj2b9HJGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG5enATvZ1iQ5VdYbUqeJOlIb6C957ZHzCJbhnuKNAkdAiEAoi6xj9TVEnVrseqiI4g96RIRApzfrCQlgR2huUlosHI="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"evanshortiss","email":"evanshortiss@gmail.com"},"maintainers":[{"name":"evanshortiss","email":"evanshortiss@gmail.com"}]},"0.0.42":{"name":"fh-health","version":"0.0.42","description":"A wrapper to add a health endpoint to your cloud application based on nodeapp.","main":"./index.js","scripts":{"test":"mocha ./test.js"},"keywords":["feedhenry","fh","fh-health","health"],"repository":{"type":"git","url":"git@github.com:evanshortiss/fh-health.git"},"author":{"name":"Evan Shortiss"},"dependencies":{"async":"0.2.9"},"bugs":{"url":"https://github.com/evanshortiss/fh-health/issues"},"homepage":"https://github.com/evanshortiss/fh-health","_id":"fh-health@0.0.42","dist":{"shasum":"0bc020d3f60b4b8c1ba76f5f6fcb8815d1652d1d","tarball":"https://registry.npmjs.org/fh-health/-/fh-health-0.0.42.tgz","integrity":"sha512-8/MTRikxeFo0KAeUAgoLNL5X4e2gjpcmy0w4RKFo7y2WtGCkCa9uFwrLeqqGJ21KnzIKsOcMxYqscfQQMw53zQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAGIypQ9Zt28peW6r27xDBmjU56erqePda9YSQnT2kwiAiEA13PyS2NktIVM9myrLsPLzdkAmoufSfoiLtTRkSsvgsg="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"evanshortiss","email":"evanshortiss@gmail.com"},"maintainers":[{"name":"evanshortiss","email":"evanshortiss@gmail.com"}]},"0.0.6":{"name":"fh-health","version":"0.0.6","description":"A wrapper to add a health endpoint to your cloud application based on nodeapp.","main":"./lib/TestRunner.js","scripts":{"test":"grunt test"},"keywords":["feedhenry","fh","fh-health","health"],"repository":{"type":"git","url":"git@github.com:evanshortiss/fh-health.git"},"author":{"name":"Evan Shortiss"},"dependencies":{"async":"0.2.9","winston":"^0.8.1"},"devDependencies":{"grunt":"~0.4.5","grunt-lintspaces":"^0.5.1","grunt-contrib-jshint":"^0.10.0","grunt-column-lint":"~0.2.0","mocha":"~1.20.1","grunt-mocha-istanbul":"~1.4.1"},"bugs":{"url":"https://github.com/evanshortiss/fh-health/issues"},"homepage":"https://github.com/evanshortiss/fh-health","_id":"fh-health@0.0.6","dist":{"shasum":"0cf4a99870cb8037237102b3dd183055c480daeb","tarball":"https://registry.npmjs.org/fh-health/-/fh-health-0.0.6.tgz","integrity":"sha512-DXv3JTKLHRuSmiosnbLVRZtUxiDMpTMTkG+EdcJyFrEF2O3a9iRGNRZJMNEp3T1uGooc4QTRB7b/iZuputt6tg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFylPAd+suyHkas0EMooeh8HMGK/qS7Wj4Q1yyvaxqNsAiBkaCSGrfwi1yZ4LK95yMb5QyNv0fmnoNyY/jnnMPay0A=="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"evanshortiss","email":"evanshortiss@gmail.com"},"maintainers":[{"name":"evanshortiss","email":"evanshortiss@gmail.com"}]},"0.1.0":{"name":"fh-health","version":"0.1.0","description":"A wrapper to add a health endpoint to your cloud application based on nodeapp.","main":"./lib/TestRunner.js","scripts":{"test":"grunt test"},"keywords":["feedhenry","fh","fh-health","health"],"repository":{"type":"git","url":"git@github.com:evanshortiss/fh-health.git"},"author":{"name":"Evan Shortiss"},"dependencies":{"async":"0.2.9","fhlog":"^0.12.1"},"devDependencies":{"grunt":"~0.4.5","grunt-lintspaces":"^0.5.1","grunt-contrib-jshint":"^0.10.0","grunt-column-lint":"~0.2.0","mocha":"~1.20.1","grunt-mocha-istanbul":"~1.4.1"},"gitHead":"65b105f8ac0bab88a58125b8f698c4156a0bbe03","bugs":{"url":"https://github.com/evanshortiss/fh-health/issues"},"homepage":"https://github.com/evanshortiss/fh-health","_id":"fh-health@0.1.0","_shasum":"3ece9d36d541cb403ac73f72cd5f20ffc34b91c3","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.10.24","_npmUser":{"name":"evanshortiss","email":"evanshortiss@gmail.com"},"maintainers":[{"name":"evanshortiss","email":"evanshortiss@gmail.com"}],"dist":{"shasum":"3ece9d36d541cb403ac73f72cd5f20ffc34b91c3","tarball":"https://registry.npmjs.org/fh-health/-/fh-health-0.1.0.tgz","integrity":"sha512-NZMkNsj8hQvN+IcLO9ENDCCJXfGN1ODHHrUT0uCBFxy+G+zClFEO5+d2+O+GhDwJr+5j9nbW6eYVAddk1FX/pg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDchTG67I+5MwsH1WELzxXgvJpMm+9rWtQDxkCh7NLRuAiEAtGDgKBwv0XXCpp5ehRI5cX3qgyjH7OJSXRJAn7KS44k="}]}},"0.1.1":{"name":"fh-health","version":"0.1.1","description":"A wrapper to add a health endpoint to your cloud application based on nodeapp.","main":"./lib/TestRunner.js","scripts":{"test":"grunt test"},"keywords":["feedhenry","fh","fh-health","health"],"repository":{"type":"git","url":"git@github.com:evanshortiss/fh-health.git"},"author":{"name":"Evan Shortiss"},"dependencies":{"async":"0.2.9","fhlog":"^0.12.1"},"devDependencies":{"grunt":"~0.4.5","grunt-lintspaces":"^0.5.1","grunt-contrib-jshint":"^0.10.0","grunt-column-lint":"~0.2.0","mocha":"~1.20.1","grunt-mocha-istanbul":"~1.4.1"},"gitHead":"04d95e837c3b88a1539280759628fb44dbea360e","bugs":{"url":"https://github.com/evanshortiss/fh-health/issues"},"homepage":"https://github.com/evanshortiss/fh-health","_id":"fh-health@0.1.1","_shasum":"969b07f82eaf7cb814eaa68b9a27bc5f8c538c6d","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"evanshortiss","email":"evanshortiss@gmail.com"},"maintainers":[{"name":"evanshortiss","email":"evanshortiss@gmail.com"}],"dist":{"shasum":"969b07f82eaf7cb814eaa68b9a27bc5f8c538c6d","tarball":"https://registry.npmjs.org/fh-health/-/fh-health-0.1.1.tgz","integrity":"sha512-Glxs7+TjW0bY56RyDOZvYi1YP5lpFu+2S5oScAldYNl19zZS5uEi+z7NfVlfK9AkcYfThnZBluNCKzBr9Cy38w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE0LX5nv1AhSBKEK07XBN0310tvphK7bFZrsaCtrp9L9AiA1yznBVdE7+GQ3qwBCCE7t7E/8pVkzvcAZuBn4rctENA=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fh-health-0.1.1.tgz_1456946682927_0.6641186599154025"}},"0.2.0":{"name":"fh-health","version":"0.2.0","description":"A wrapper to add a health endpoint to your cloud application based on nodeapp.","main":"./lib/TestRunner.js","scripts":{"test":"grunt test"},"keywords":["feedhenry","fh","fh-health","health"],"repository":{"type":"git","url":"git@github.com:evanshortiss/fh-health.git"},"author":{"name":"Evan Shortiss"},"dependencies":{"async":"0.2.9","fhlog":"^0.12.1"},"devDependencies":{"grunt":"~0.4.5","grunt-lintspaces":"^0.5.1","grunt-contrib-jshint":"^0.10.0","grunt-column-lint":"~0.2.0","mocha":"~1.20.1","grunt-mocha-istanbul":"~1.4.1"},"gitHead":"51a76f886e866480132dd8024f35fb1cd7cf9052","bugs":{"url":"https://github.com/evanshortiss/fh-health/issues"},"homepage":"https://github.com/evanshortiss/fh-health","_id":"fh-health@0.2.0","_shasum":"5e5d8fced0bfa24b9fe979e6bde176c2b7626774","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"evanshortiss","email":"evanshortiss@gmail.com"},"maintainers":[{"name":"evanshortiss","email":"evanshortiss@gmail.com"}],"dist":{"shasum":"5e5d8fced0bfa24b9fe979e6bde176c2b7626774","tarball":"https://registry.npmjs.org/fh-health/-/fh-health-0.2.0.tgz","integrity":"sha512-NfboZ3kBFaBEBT5xTEbnRk6q0BXZ8j9fkhUx/ToK5n/VnpkM2dseTMwHZyIebBVB3uQER7tl5nHv5PKtdY8cWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCkNfVqBHTDHhDKHiZf2RCXsOS5v7k2zzuJCTi/SS4tLgIgWWbdRArGl4HXP+OILZyq+A0SkFyIpHSv4Cj/rJ+C6lk="}]},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/fh-health-0.2.0.tgz_1456946773378_0.8599925350863487"}},"0.3.1":{"name":"fh-health","version":"0.3.1","description":"A wrapper to add a health endpoint to your cloud application based on nodeapp.","main":"./lib/TestRunner.js","files":["lib/"],"scripts":{"test":"grunt test"},"keywords":["feedhenry","fh","fh-health","health"],"repository":{"type":"git","url":"git+ssh://git@github.com/evanshortiss/fh-health.git"},"author":{"name":"Evan Shortiss"},"license":"Apache-2.0","dependencies":{"async":"0.2.9","fhlog":"^0.12.1"},"devDependencies":{"grunt":"~0.4.5","grunt-lintspaces":"^0.8.0","grunt-contrib-jshint":"^0.10.0","grunt-column-lint":"~0.2.0","mocha":"~1.20.1","grunt-mocha-istanbul":"~1.4.1"},"gitHead":"5e6e2459ddbaaefedddd64ae27f3b2a4c70cd011","bugs":{"url":"https://github.com/evanshortiss/fh-health/issues"},"homepage":"https://github.com/evanshortiss/fh-health#readme","_id":"fh-health@0.3.1","_shasum":"621795da238f91bffab56b32552f684b56d901bd","_from":".","_npmVersion":"3.8.8","_nodeVersion":"0.10.30","_npmUser":{"name":"evanshortiss","email":"evanshortiss@gmail.com"},"maintainers":[{"name":"evanshortiss","email":"evanshortiss@gmail.com"}],"dist":{"shasum":"621795da238f91bffab56b32552f684b56d901bd","tarball":"https://registry.npmjs.org/fh-health/-/fh-health-0.3.1.tgz","integrity":"sha512-C7yl0h1H6EsWzlRpJ2feOgaHRV2xg2yQ4hKvoOlmuUm7MT64L+vSk5zec9gH/wO90Gm9IjCzt57oFLn5MULSgw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEzIN+S8X4ZeUaC87cxPLTNANdyERaMkPzezFUxrw+ugIhAMSuK04QVpX2G9k+IpJZw78y09n0SwxWJhePN+W+5a42"}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/fh-health-0.3.1.tgz_1473177672468_0.9142264279071242"}},"0.3.2":{"name":"fh-health","version":"0.3.2","description":"A wrapper to add a health endpoint to your cloud application based on nodeapp.","main":"./lib/TestRunner.js","files":["lib/"],"scripts":{"test":"grunt test"},"keywords":["feedhenry","fh","fh-health","health"],"repository":{"type":"git","url":"git+ssh://git@github.com/evanshortiss/fh-health.git"},"author":{"name":"Evan Shortiss"},"license":"Apache-2.0","dependencies":{"async":"0.2.9","fhlog":"^0.13.0"},"devDependencies":{"grunt":"~0.4.5","grunt-lintspaces":"^0.8.0","grunt-contrib-jshint":"^0.10.0","grunt-column-lint":"~0.2.0","mocha":"~1.20.1","grunt-mocha-istanbul":"~1.4.1"},"gitHead":"65c5f86f17c7108327c27fd8682e877c0fd19349","bugs":{"url":"https://github.com/evanshortiss/fh-health/issues"},"homepage":"https://github.com/evanshortiss/fh-health#readme","_id":"fh-health@0.3.2","_shasum":"ce06811b0b9a160494da54b99bd6f0937c162e5a","_from":".","_npmVersion":"4.6.1","_nodeVersion":"6.9.1","_npmUser":{"name":"evanshortiss","email":"evanshortiss@gmail.com"},"dist":{"shasum":"ce06811b0b9a160494da54b99bd6f0937c162e5a","tarball":"https://registry.npmjs.org/fh-health/-/fh-health-0.3.2.tgz","integrity":"sha512-jL3wajIxECuQm0UGwyM5NKWE9Fn0W2yg2hzZgWP+oHu/Kb8msD0wBBvXsyLBKPA86+JEIvG1te+OVH9BrP5eZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEYJi/L9tQjKu9+RIuymES0nXN5Hfa0ESl//7gk3GvdiAiEA93HDnyRHNfwgMsxC6s5ilbey1+HzB7Fy7E28GPP5dzs="}]},"maintainers":[{"name":"evanshortiss","email":"evanshortiss@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fh-health-0.3.2.tgz_1508363455635_0.6630664512049407"}},"0.3.3":{"name":"fh-health","version":"0.3.3","description":"A wrapper to add a health endpoint to your cloud application based on nodeapp.","main":"./lib/TestRunner.js","files":["lib/"],"scripts":{"test":"grunt test"},"keywords":["feedhenry","fh","fh-health","health"],"repository":{"type":"git","url":"git+ssh://git@github.com/evanshortiss/fh-health.git"},"author":{"name":"Evan Shortiss"},"license":"Apache-2.0","dependencies":{"async":"0.2.9","fhlog":"^0.13.1"},"devDependencies":{"grunt":"~0.4.5","grunt-lintspaces":"^0.8.0","grunt-contrib-jshint":"^0.10.0","grunt-column-lint":"~0.2.0","mocha":"~1.20.1","grunt-mocha-istanbul":"~1.4.1"},"gitHead":"fa62111d0aacd648c0f4d28c3d84517614d0873c","bugs":{"url":"https://github.com/evanshortiss/fh-health/issues"},"homepage":"https://github.com/evanshortiss/fh-health#readme","_id":"fh-health@0.3.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"evanshortiss","email":"evanshortiss@gmail.com"},"dist":{"integrity":"sha512-DIT/GJL8JyaQWtP+RzqFnAGviCfhxqXmHqzxCBwnJ0vfGwHu2L0YvTeMZSRGE/DdBxE95kyIxzy1pbZjHYPT2A==","shasum":"a9d343f8411c9bbbf6255d7b77076da7b0cc2247","tarball":"https://registry.npmjs.org/fh-health/-/fh-health-0.3.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvKIza3vWCNq4AhLzHuMM1cdAsBT8MlXfP7tWdaYEK+wIhANwhh+i3QtdwLa/8IH+25CKI0AELStxZnaCZSPhElODc"}]},"maintainers":[{"name":"evanshortiss","email":"evanshortiss@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fh-health-0.3.3.tgz_1517511789753_0.2181063515599817"}}},"readme":"#fh-health\n\n[![build-status](https://travis-ci.org/feedhenry-staff/fh-health.svg?branch=master)\n](https://travis-ci.org/feedhenry-staff/fh-health.svg?branch=master)[![version](https://badge.fury.io/js/fh-health.svg)\n](https://badge.fury.io/js/fh-health.svg)\n\nModule to add health checks to an application. This is a health check to \nverify the running application (connectivity, etc.) is ok, and not a replacemnt \nfor actual testing. The health check returns a JSON response formatted as shown \nbelow (using a single whitespace between key and values):\n\n```json\n{\n    \"status\": \"<ok|warn|crit>\",\n    \"summary\": \"<something-meaningful-about-the-status>\",\n    \"details\": []\n}\n```\n\nThe \"details\" Array contains objects describing the results of each test which \nare formatted like so.\n\n```json\n{\n  \"description\": \"<The description provided to addTest or addCriticalTest function>\",\n  \"test_status\": \"<ok|warn|crit>\",\n  \"result\": \"<The result returned from your callback to either the err or result paramater>\",\n  \"runtime\": \"<Time taken in milliseconds to run the test item>\"\n}\n```\n\n\n##Usage\nIf running within fh-nodeapp the module should be initialised from your main.js \nfile as shown below. This will setup a new endpoint in your application called \n\"health\", so ensure none of your endpoints are called health to avoid \nconflicts. Alternatively you can just call *health.init()* and manage the \nendpoint yourself.\n\n```javascript\n// With fh-nodeapp\nvar health = require('fh-health');\n// This will add a health endpoint automatically.\nhealth.init(module.exports);\n\n// Standard usage with an express app\nvar health = require('fh-health');\nhealth.init();\napp.get('/health', function(req, res) {\n  health.runTests(function(err, testResult) {\n    res.end(testResult);\n  });\n});\n```\n\n##Adding Tests\nAdding tests is done via two functions. *addTest(description, testFn)* and \n*addCriticalTest(description, testFn)*. The *testFn* function is a function \nthat must have the format:\n\n```javascript\nfunction testFn(callback) {\n  // ...Do some stuff...\n  // ...................\n  if(anErrorOccurred) {\n    return callback('Oh crap!', null);\n  } else {\n    return callback(null, 'All good here!');\n  }\n}\n\nhealth.addCriticalTest('Test something important', testFn);\n```\n\n###Critical Tests - *addCriticalTest(name, fn)*\nAre those that result in the health endpoint returning a \"crit\" status if they \npass a non null *err* argument (the first argument) to their callback. If a \ncritical test has no issues then they have a status of \"ok\".\n\n### Standard Tests - *addTest(name, fn)*\nAdded via *addTest* are tests that can return an error to their callback \nwithout causing a \"crit\" status, but will instead cause a \"warn\" status.\n\n\n##Simple Example\n\n```javascript\nvar request = require('request');\nvar health = require('fh-health');\nhealth.init(module.exports);\n\nhealth.addTest('Test http', function(callback){\n\tvar request = require('request');\n\trequest.get('http://www.google.com', function(err, res, body) {\n\t\tif (err) {\n\t\t\treturn callback('Error in request to google.com: ' + JSON.stringify(err));\n\t\t} else if (res && res.statusCode != 200) {\n\t\t\treturn callback('Google responded with status code of ' + res.statusCode);\n\t\t} else {\n      return callback(null, 'Successfully loaded google.com');\n    }\n\t});\n});\n```\n\nThis example if successful would return the following response:\n\n```javascript\n{\n    status: 'ok',\n    summary: 'No issues to report. All tests passed without error',\n    details: [{\n        description: 'Test a request to www.google.com is successful',\n        test_status: 'ok',\n        result: 'Successfully loaded google.com',\n        runtime: 2106\n    }]\n}\n```\n\nIf this example encountered a status code that wasn't *200* the following would \nbe returned:\n\n\n```javascript\n{\n    status: 'warn',\n    summary: 'Some non-critical tests encountered issues. See the \"details\" \n    object for specifics.',\n    details: [{\n        description: 'Test a request to www.google.com is successful',\n        test_status: 'warn',\n        result: 'Google responded with a status code of {CODE}',\n        runtime: 2341\n    }]\n}\n```\n\n##Timeouts\nThe default timeout for running tests is 25 seconds. After 25 seconds the test \nrunner will ignore results returned from any unfinished tests.\n\nThe timeout can be modified like so:\n\n```javascript\n// Set the max running time to 60 seconds\nvar health = require('fh-health');\nhealth.setMaxRuntime( (60*1000) );\n```\n\nIf a timeout occurs on a critical test then the overall status returned will \nbe \"crit\". If a timeout occurs on a regular test then a status of \"warn\" will \nbe returned.\n\n```json\n{\n  \"status\": \"warn\",\n  \"summary\": \"Some non-critical tests encountered issues. See the 'details' object for specifics.\",\n  \"details\": [\n    {\n      \"description\": \"Check connectivity to component XYZ.\",\n      \"test_status\": \"warn\",\n      \"result\": \"The test didn't complete before the alotted time frame.\",\n      \"runtime\": 25000\n    }\n  ]\n}\n```\n\n##Usage Pattern\nYou can include test cases in separate modules which is perfectly valid, or \nalternatively have all tests in a single file.\n\n####index.js\n\n```javascript\nvar health = require('fh-health');\nhealth.init();\n\nvar app = express();\napp.get('/health', function(req, res) {\n  health.runTests(function(err, data) {\n    if(err) {\n      res.status(500).end('An error occurred.');\n    } else {\n      res.json(data);\n    }\n  });\n});\n```\n\n####myOtherModule.js\n```javascript\nvar health = require('fh-health');\n\nhealth.addTest('Test some functionality.', function(callback) {\n\t// Test code...\n});\nhealth.addCriticalTest('Test some critical functionality.', function(callback) {\n\t// Test code...\n});\n```\n\n####myOtherOtherModule.js\n```javascript\nvar health = require('fh-health');\n\nhealth.addTest('Just another test...', function(callback) {\n  // Test code...\n});\n```\n","maintainers":[{"name":"evanshortiss","email":"evanshortiss@gmail.com"}],"time":{"modified":"2022-06-18T00:24:58.796Z","created":"2014-01-21T14:34:58.550Z","0.0.0":"2014-01-21T14:34:59.464Z","0.0.1":"2014-02-13T16:23:31.196Z","0.0.2":"2014-03-05T22:05:11.219Z","0.0.3":"2014-03-05T22:30:24.197Z","0.0.4":"2014-03-06T12:45:00.198Z","0.0.41":"2014-03-18T11:12:56.687Z","0.0.42":"2014-03-18T11:26:58.577Z","0.0.6":"2014-11-10T00:13:14.859Z","0.1.0":"2015-07-24T15:07:55.574Z","0.1.1":"2016-03-02T19:24:45.632Z","0.2.0":"2016-03-02T19:26:16.203Z","0.3.1":"2016-09-06T16:01:20.393Z","0.3.2":"2017-10-18T21:50:55.710Z","0.3.3":"2018-02-01T19:03:09.871Z"},"readmeFilename":"README.md","author":{"name":"Evan Shortiss"},"repository":{"type":"git","url":"git+ssh://git@github.com/evanshortiss/fh-health.git"},"homepage":"https://github.com/evanshortiss/fh-health#readme","keywords":["feedhenry","fh","fh-health","health"],"bugs":{"url":"https://github.com/evanshortiss/fh-health/issues"},"users":{"columbennett":true},"license":"Apache-2.0"}