Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@hmcts/nodejs-healthcheck
Advanced tools
A library for adding reform standard compliant healthchecks to nodejs applications.
Configure an express.js handler with checks.
const healthcheck = require('@hmcts/nodejs-healthcheck');
app.get("/status", healthcheck.configure({
checks: {
mySimpleWebCheck: healthcheck.web("https://example.com/status"),
myComplexWebCheck: healthcheck.web("https://example.com/other", {
callback: (err, res) => {
return res.body.status == "good" ? healthcheck.up() : healthcheck.down()
},
timeout: 5000,
deadline: 10000,
}),
myRawCheck: healthcheck.raw(() => {
return myInternalCheck() ? healthcheck.up() : healthcheck.down()
})
},
buildInfo: {
myCustomBuildInfo: "yay"
}
});
To package and publish use the Makefile target. This requires your artifactory API key to be set to an
environment variable called JFROG_API_KEY
. You can get your key from your artifactory profile.
JFROG_API_KEY=fake-key make publish
Run yarn install (if packages not downloaded) and then run yarn test to run unit tests
FAQs
Healthcheck endpoint for Reform nodejs applications
The npm package @hmcts/nodejs-healthcheck receives a total of 4,504 weekly downloads. As such, @hmcts/nodejs-healthcheck popularity was classified as popular.
We found that @hmcts/nodejs-healthcheck demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 16 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.