
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
microhealth
Advanced tools
A Node.js module for simple health checking. Originally created to add health checks to microservices deployed to our Kubernetes cluster.
First, install microhealth using npm:
npm i microhealth
Then, require the package and use it like so:
const health = require('microhealth')
health.register(() => Promise.resolve())
health.check()
.then(() => console.log('Healthy!'))
.catch(() => console.error('Health check failed!'))
.register(cb)Register a health check. This should be a promise which will resolve if check passes or rejects if the check failed.
.check()Run all checks. Returns a promise. If they all pass will resolve and if any check fails will reject.
.route()Returns connect/express middleware. Will run .check() and send 200 response if
all checks pass and 500 if any check fails.
.getChecks()Returns an array of all registered health checks.
.reset()Clears all health checks. Used for testing. Normally you would not call this directly.
To report bugs or request features, submit issues here on GitHub, concrete-cc/microhealth/issues. Pull requests are also welcome.
MIT
FAQs
Simple health check for microservices
The npm package microhealth receives a total of 0 weekly downloads. As such, microhealth popularity was classified as not popular.
We found that microhealth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.