{"_id":"@askbills/healthcheck","_rev":"13-b4974ab5fce2a8efdb7881331d6f1ee7","name":"@askbills/healthcheck","description":"Check whether A Service alive or not","dist-tags":{"latest":"1.0.1"},"versions":{"0.0.1":{"name":"@askbills/healthcheck","version":"0.0.1","description":"checking service whether alive or not","main":"index.js","engines":{"node":">=6.9.5"},"scripts":{"lint":"eslint index.js","lintFix":"npm run lint -- --fix","test":"mocha ./test/*.spec.js","test:coverage":"nyc --report-dir ./artifacts/coverage --reporter=html --reporter=text --reporter=lcov _mocha  ./test/*.spec.js"},"repository":{"type":"git","url":"git@gitlab.com:Training-Deployment/npm-packages/healthcheck.git"},"keywords":["healthcheck","hapi","service","plugin","verify"],"author":{"name":"Le Ngoc Duy"},"license":"ISC","dependencies":{"hapi":"^16.5.2"},"devDependencies":{"babel-eslint":"^7.2.3","chai":"^4.1.1","eslint":"^4.5.0","eslint-config-airbnb-base":"^11.3.2","eslint-plugin-import":"^2.7.0","eslint-plugin-node":"^5.1.1","eslint-plugin-security":"^1.4.0","hapi-swagger":"^7.7.1","inert":"^4.2.1","mocha":"^3.5.0","nyc":"^11.1.0","vision":"^4.1.1"},"nyc":{"exclude":["test/*.js"]},"gitHead":"4854604096c975c1aea25d73ae5bd5aa9914d954","_id":"@askbills/healthcheck@0.0.1","_shasum":"4e5416d1596468d612acbca9898213b253bb8b2a","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"askbills","email":"askbills@gmail.com"},"dist":{"shasum":"4e5416d1596468d612acbca9898213b253bb8b2a","tarball":"https://registry.npmjs.org/@askbills/healthcheck/-/healthcheck-0.0.1.tgz","integrity":"sha512-jp0XjjKjYkJvXKkBpSQwwLGSOvRY1GQ2KBu7i4+c0Gu0bx6/tcFWo8e3WTfQ6F/2hgRjC65C+GF7F5Po6PoCtA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGz4ho+PDcYu99qYR0iKTJXlNmdZ4Dt2AwSf/xMoign5AiEA9/u/tW/X29DD0qi7nR8lp/EKO7zhIuyz/gnQKMmTBc4="}]},"maintainers":[{"name":"askbills","email":"askbills@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/healthcheck-0.0.1.tgz_1503941139412_0.45957013173028827"},"directories":{}},"0.0.2":{"name":"@askbills/healthcheck","version":"0.0.2","description":"checking service whether alive or not","main":"index.js","engines":{"node":">=6.9.5"},"scripts":{"lint":"eslint index.js","lintFix":"npm run lint -- --fix","test":"mocha ./test/*.spec.js","test:coverage":"nyc --report-dir ./artifacts/coverage --reporter=html --reporter=text --reporter=lcov _mocha  ./test/*.spec.js"},"repository":{"type":"git","url":"git@gitlab.com:Training-Deployment/npm-packages/healthcheck.git"},"keywords":["healthcheck","hapi","service","plugin","verify"],"author":{"name":"Le Ngoc Duy"},"license":"ISC","dependencies":{"hapi":"^16.5.2"},"devDependencies":{"babel-eslint":"^7.2.3","chai":"^4.1.1","eslint":"^4.5.0","eslint-config-airbnb-base":"^11.3.2","eslint-plugin-import":"^2.7.0","eslint-plugin-node":"^5.1.1","eslint-plugin-security":"^1.4.0","hapi-swagger":"^7.7.1","inert":"^4.2.1","mocha":"^3.5.0","nyc":"^11.1.0","vision":"^4.1.1"},"nyc":{"exclude":["test/*.js"]},"gitHead":"23921341460493ac2087ee64a2d9787bd691faa1","_id":"@askbills/healthcheck@0.0.2","_shasum":"f3eb7727afb784cd7589cbd800a28e3ee6ee928e","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"askbills","email":"askbills@gmail.com"},"dist":{"shasum":"f3eb7727afb784cd7589cbd800a28e3ee6ee928e","tarball":"https://registry.npmjs.org/@askbills/healthcheck/-/healthcheck-0.0.2.tgz","integrity":"sha512-/xKLkFtZPWtBARaBgOaORQQGDKVgxvQuaMxBbrXAVdgWTqcJf7Fa9uatLV46x9g6VmZNWYgJtJhK1l45POfNfg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmlx7SGRdb50n9dRcmvqaQTk0FzhcVbO0N/886T04B9QIgJrXIruy8/vAv56vaU6RpKA0CovGp/zfMMrrPhy/hkZ4="}]},"maintainers":[{"name":"askbills","email":"askbills@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/healthcheck-0.0.2.tgz_1505031325899_0.4405360254459083"},"directories":{}},"0.0.3":{"name":"@askbills/healthcheck","version":"0.0.3","description":"checking service whether alive or not","main":"index.js","engines":{"node":">=6.9.5"},"scripts":{"lint":"eslint index.js","lintFix":"npm run lint -- --fix","test":"mocha ./test/*.spec.js","test:coverage":"nyc --report-dir ./artifacts/coverage --reporter=html --reporter=text --reporter=lcov _mocha  ./test/*.spec.js"},"repository":{"type":"git","url":"git@gitlab.com:Training-Deployment/npm-packages/healthcheck.git"},"keywords":["healthcheck","hapi","service","plugin","verify"],"author":{"name":"Le Ngoc Duy"},"license":"ISC","dependencies":{"hapi":"^16.5.2"},"devDependencies":{"babel-eslint":"^7.2.3","chai":"^4.1.1","eslint":"^4.5.0","eslint-config-airbnb-base":"^11.3.2","eslint-plugin-import":"^2.7.0","eslint-plugin-node":"^5.1.1","eslint-plugin-security":"^1.4.0","hapi-swagger":"^7.7.1","inert":"^4.2.1","mocha":"^3.5.0","nyc":"^11.1.0","vision":"^4.1.1"},"nyc":{"exclude":["test/*.js"]},"gitHead":"675a37db8f5beab872a5ac41785b858e62ab6d99","_id":"@askbills/healthcheck@0.0.3","_shasum":"dca0734dd6557ccf2056e0f983eaa8b2995fe2ed","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"askbills","email":"askbills@gmail.com"},"dist":{"shasum":"dca0734dd6557ccf2056e0f983eaa8b2995fe2ed","tarball":"https://registry.npmjs.org/@askbills/healthcheck/-/healthcheck-0.0.3.tgz","integrity":"sha512-8iwN/Ta0RGiZThfKUyHED0CwesCEmFP9j9Oc74wL5WbZrFFKePo0MzlHSAPFEuC/ok+pUBfsxfrefCW9r4g8NQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB2/9MzilsnbQxo9iYwM5FvidSW81zCI9YxYRcMh6MjTAiBDq3p6Uq1En3zpplG8tfHN5m5l08QEHY4GyFOJbEXJpg=="}]},"maintainers":[{"name":"askbills","email":"askbills@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/healthcheck-0.0.3.tgz_1505670232605_0.5562671080697328"},"directories":{}},"0.0.4":{"name":"@askbills/healthcheck","version":"0.0.4","description":"checking service whether alive or not","main":"index.js","engines":{"node":">=6.9.5"},"scripts":{"lint":"eslint index.js","lintFix":"npm run lint -- --fix","test":"mocha ./test/*.spec.js","test:coverage":"nyc --report-dir ./artifacts/coverage --reporter=html --reporter=text --reporter=lcov _mocha  ./test/*.spec.js"},"repository":{"type":"git","url":"git@gitlab.com:Training-Deployment/npm-packages/healthcheck.git"},"keywords":["healthcheck","hapi","service","plugin","verify"],"author":{"name":"Le Ngoc Duy"},"license":"ISC","dependencies":{"hapi":"^16.5.2"},"devDependencies":{"babel-eslint":"^7.2.3","chai":"^4.1.1","eslint":"^4.5.0","eslint-config-airbnb-base":"^11.3.2","eslint-plugin-import":"^2.7.0","eslint-plugin-node":"^5.1.1","eslint-plugin-security":"^1.4.0","hapi-swagger":"^7.7.1","inert":"^4.2.1","mocha":"^3.5.0","nyc":"^11.1.0","vision":"^4.1.1"},"nyc":{"exclude":["test/*.js"]},"gitHead":"675a37db8f5beab872a5ac41785b858e62ab6d99","_id":"@askbills/healthcheck@0.0.4","_shasum":"32a696f1abec5713065a3f6a0faac86a81d4a913","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"askbills","email":"askbills@gmail.com"},"dist":{"shasum":"32a696f1abec5713065a3f6a0faac86a81d4a913","tarball":"https://registry.npmjs.org/@askbills/healthcheck/-/healthcheck-0.0.4.tgz","integrity":"sha512-bwZY3oyVZD845a4Ztz/7xjJCoUEUOwCidy1GVn0ASE9FsasNlinN7h+xpbbVyxW0UcOP1X/LMs8/7gRzOawKEg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjK4q2XJgFC6U9a++iDGMUSlB3ZAgbESzyrD7FfswmMgIhALvO7vGFP4T31p0r9JyGK8VaN5Fmh8xV31q96PEkPUtz"}]},"maintainers":[{"name":"askbills","email":"askbills@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/healthcheck-0.0.4.tgz_1505671252860_0.8457426489330828"},"directories":{}},"0.0.5":{"name":"@askbills/healthcheck","version":"0.0.5","description":"checking service whether alive or not","main":"index.js","engines":{"node":">=6.9.5"},"scripts":{"lint":"eslint index.js","lintFix":"npm run lint -- --fix","test":"mocha ./test/*.spec.js","test:coverage":"nyc --report-dir ./artifacts/coverage --reporter=html --reporter=text --reporter=lcov _mocha  ./test/*.spec.js"},"repository":{"type":"git","url":"git@gitlab.com:Training-Deployment/npm-packages/healthcheck.git"},"keywords":["healthcheck","hapi","service","plugin","verify"],"author":{"name":"Le Ngoc Duy"},"license":"ISC","dependencies":{"hapi":"^16.5.2"},"devDependencies":{"babel-eslint":"^7.2.3","chai":"^4.1.1","eslint":"^4.5.0","eslint-config-airbnb-base":"^11.3.2","eslint-plugin-import":"^2.7.0","eslint-plugin-node":"^5.1.1","eslint-plugin-security":"^1.4.0","hapi-swagger":"^7.7.1","inert":"^4.2.1","mocha":"^3.5.0","nyc":"^11.1.0","vision":"^4.1.1"},"nyc":{"exclude":["test/*.js"]},"gitHead":"675a37db8f5beab872a5ac41785b858e62ab6d99","_id":"@askbills/healthcheck@0.0.5","_shasum":"e0a1e1b247c374e1615676232d30f36f32b25149","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"askbills","email":"askbills@gmail.com"},"dist":{"shasum":"e0a1e1b247c374e1615676232d30f36f32b25149","tarball":"https://registry.npmjs.org/@askbills/healthcheck/-/healthcheck-0.0.5.tgz","integrity":"sha512-N25pbQA3e+SBw3u2RCeZzRzlrGS3Wb/HHb5uGwfe+L1Ky1gRRm3XALGXaWHSSDUtU/xizl5pa1BqTeZ14rifEA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB2bZn/v0PL8hYkAxsxvasZgforc5/9NeoGnnJb8rNBpAiBFI2l0b41qU1lQEhb2cg75BUnwnwBvfDv/Iy4fycZN4g=="}]},"maintainers":[{"name":"askbills","email":"askbills@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/healthcheck-0.0.5.tgz_1505699551846_0.4968891099561006"},"directories":{}},"1.0.0":{"name":"@askbills/healthcheck","version":"1.0.0","description":"checking service whether alive or not","main":"index.js","engines":{"node":">=6.9.5"},"scripts":{"lint":"eslint index.js","lintFix":"npm run lint -- --fix","test":"mocha ./test/*.spec.js","test:coverage":"nyc --report-dir ./artifacts/coverage --reporter=html --reporter=text --reporter=lcov _mocha  ./test/*.spec.js"},"repository":{"type":"git","url":"git@gitlab.com:Training-Deployment/npm-packages/healthcheck.git"},"keywords":["healthcheck","hapi","service","plugin","verify"],"author":{"name":"Le Ngoc Duy"},"license":"ISC","dependencies":{"hapi":"^16.5.2"},"devDependencies":{"babel-eslint":"^7.2.3","chai":"^4.1.1","eslint":"^4.5.0","eslint-config-airbnb-base":"^11.3.2","eslint-plugin-import":"^2.7.0","eslint-plugin-node":"^5.1.1","eslint-plugin-security":"^1.4.0","hapi-swagger":"^7.7.1","inert":"^4.2.1","mocha":"^3.5.0","nyc":"^11.1.0","vision":"^4.1.1"},"nyc":{"exclude":["test/*.js"]},"gitHead":"45b539dde081390dd5d1dcb6568edd0b75c8cfb1","_id":"@askbills/healthcheck@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"askbills","email":"askbills@gmail.com"},"dist":{"integrity":"sha512-Zx1/SVFvAVc8R/voSXTuWfj61RrE/LPsdhrZgDsrl1eHjjmWzjtjEDR+rh++CDOWNNUxMGj8iN4O05Yw44mKZA==","shasum":"304a1a289b989a278bdcf5f38547b11cdc2ef3c0","tarball":"https://registry.npmjs.org/@askbills/healthcheck/-/healthcheck-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFj1s1eq5LPi6kZvE1De5TtCELHjiB6Q1q8WkwYaZdDSAiEAqz3cBmdgvTzYmQuCZmoeQXCzHHgUtD4P00J2Ps7lXc4="}]},"maintainers":[{"name":"askbills","email":"askbills@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/healthcheck-1.0.0.tgz_1509611193365_0.1526002713944763"},"directories":{}},"1.0.1":{"name":"@askbills/healthcheck","version":"1.0.1","description":"Check whether A Service alive or not","main":"index.js","engines":{"node":">=12.18.3"},"scripts":{"lint":"eslint index.js","lintFix":"npm run lint -- --fix","test":"mocha ./test/*.spec.js","test:coverage":"nyc --report-dir ./artifacts/coverage --reporter=html --reporter=text --reporter=lcov _mocha  ./test/*.spec.js"},"repository":{"type":"git","url":"git@gitlab.com:Training-Deployment/npm-packages/healthcheck.git"},"keywords":["healthcheck","hapi","service","plugin","verify"],"author":{"name":"Le Ngoc Duy"},"license":"MIT","dependencies":{"@hapi/hapi":"^20.0.0","@hapi/inert":"^6.0.2","@hapi/vision":"^6.0.1","hapi-swagger":"^14.0.0","joi":"^17.2.1"},"devDependencies":{"@askbills/eslint-config-node":"^1.0.1","chai":"^4.2.0","mocha":"^3.5.3","nyc":"^11.9.0"},"nyc":{"exclude":["test/*.js"]},"gitHead":"3b9452a07ebda891795d0c736d5a78688bec5ad8","_id":"@askbills/healthcheck@1.0.1","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-KSRHf2Q7GV6rQoHmgjP3EsWDgANdQF/NBD7YvF2s4TYkMtJGaketcQ3ua6Cl9dkZ16EnwOg3Wh8+fNGFshg8VA==","shasum":"16a1b69f544a64bc7237b70f80b5ab05a5ed7c8c","tarball":"https://registry.npmjs.org/@askbills/healthcheck/-/healthcheck-1.0.1.tgz","fileCount":8,"unpackedSize":6865,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfT95FCRA9TVsSAnZWagAACFIQAJVi9CcfboZVc2pbkPCl\nOVZtBVylFAY9HRFjzpDnPcdtYhbYjMV6K3fHJjiVjwKSzYIlgcQNBNjq9q7W\nlYxg3mWMINiOQm62EQ7gxcPbNvEUUjLOwZcsk899vpE7Yad8J4AGAVaby1yj\nrqgabZiCuknGPXedVkUfdban6tnsTzmvK/GoAz4w9CRt33IRqhdSdWn4ZJXC\nCE88PD3GudIaX5fvlQWH+UTGWr/3aUVGk8FrCosCHRpP6SI9BmByqwdm+Anv\nwOiugfMXsYA4nZJjPwkhYwG5tcI27yla+xFO6OdeoHWn+eWADIkjBH4IDzf+\nrO7xSawRlPOyYRF4zNW+Y3L99xd6ricaWRvy0FOrwrdaqk2IufLVQO5V0FUl\ngMOvEp6AhwVdsk5LlXcHMbu97D1Y+u6GXr4RZGrbVXWLuAEU1fOXAVuOooYM\nrNumG4hff8pWvdtnSRpYDFNrisa3CldytuB0roCwLh2MYx5TKGL51jV86pGf\nUQma4YKr1EOtj3jrLsZpLBgZ2ysxZhqhBt2Ts5c0sfS4fSXp9/kkCZgRs97Z\nA7PXl5ckjDIp/yJGYPKebJqaHryGTPExgE+BzMRyYESkwcms8EAGDNcNJ6H2\nEXQ35nzqovfdrHESIRMCV+2Ra2D8Gn5lfldCpodlGPrOFe+lPG37nxChjoVw\nbj7Z\r\n=HVNm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKEwvEKMAm9NUgdUB16MXlRnCxr5QtlWxEfgJEY1pFugIgFMCbUEu+NOxErxCN0nTyG2XsVa+nQUB03EJeax3To8g="}]},"maintainers":[{"name":"askbills","email":"askbills@gmail.com"}],"_npmUser":{"name":"askbills","email":"askbills@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/healthcheck_1.0.1_1599069764609_0.1118891992375941"},"_hasShrinkwrap":false}},"readme":"### Introduction\nThis package supports checking service whether alive or not.\n\n### Capabilities and Frameworks\n|Capability|Module|\n|------------------|-----------|\n|Server Framework|[`hapi`](https://hapijs.com/) as a web server|\n|API documentation|[`hapi-swagger`](https://github.com/glennjones/hapi-swagger) support self documentation the API interface in the project from code annotations. `hapi-swagger` will need to install the [`inert`](https://github.com/hapijs/inert) static file and directory handlers plugin for hapi.js, [`vision`](https://github.com/hapijs/vision) templates rendering support for hapi.js|\n|Coding Standard|[`eslint`](https://github.com/eslint/eslint) identifying and reporting on patterns found in ECMAScript/JavaScript code completely pluggable, [`babel-eslint`](https://github.com/babel/babel-eslint) support parsing ECMAScript for eslint|\n|Testing Framework|[`chai`](https://github.com/chaijs/chai) a BDD / TDD assertion library for node and browser, [`mocha`](https://github.com/mochajs/mocha) test framework, [`nyc`](https://github.com/istanbuljs/nyc) command line interface support checking code coverage|\n\n### How to test\n```\nnpm test\nnpm test:coverage\n```\n\n### How to check lint\n```\nnpm run lint\nnpm run lintFix\n```\n\n### How to use\n\n#### Install this module check `dependencies` in package.json\n```\n\"dependencies\": {\n    \"@askbills/healthcheck\": \"0.0.1\"\n  }\n```\n\n#### Create a service connection object with an `api` tag.\n```\nserver.connection([\n  {\n    address: 'localhost',\n    port: 3000,\n    labels: ['api']\n  }\n]);\n```\n\n#### Add it as an object in plugins array with register `healthcheck`, check dependencies\n```\nconst pkg = require('../package.json');\nconst plugins = [\n  inert,\n  vision,\n  {\n    select: ['api'],\n    register: hapiSwagger\n  },\n  {\n    select: ['api'],\n    register: healthcheck,\n    options: {\n      pkg: pkg.dependencies,\n      config: {\n        api: {\n          version: '0.0.0'\n        }\n      }\n    }\n  }\n];\n\nserver.register(plugins);\n```\n","maintainers":[{"name":"askbills","email":"askbills@gmail.com"}],"time":{"modified":"2022-06-12T14:49:16.742Z","created":"2017-08-28T17:25:39.549Z","0.0.1":"2017-08-28T17:25:39.549Z","0.0.2":"2017-09-10T08:15:26.077Z","0.0.3":"2017-09-17T17:43:52.731Z","0.0.4":"2017-09-17T18:00:53.002Z","0.0.5":"2017-09-18T01:52:32.596Z","0.0.6":"2017-09-18T01:55:12.274Z","1.0.0":"2017-11-02T08:26:34.307Z","1.0.1":"2020-09-02T18:02:44.785Z"},"keywords":["healthcheck","hapi","service","plugin","verify"],"repository":{"type":"git","url":"git@gitlab.com:Training-Deployment/npm-packages/healthcheck.git"},"author":{"name":"Le Ngoc Duy"},"license":"MIT","readmeFilename":"README.md"}