Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
This Hapi plugin exposes a route at /ding (by default), which responds with useful server information.
This plugin works with Hapi 17 and above.
const Hapi = require('hapi');
const server = Hapi.Server({
load: {
sampleInterval: 1000
},
host: 'localhost',
port: 8000
});
await server.register({
plugin: require('hapi-ding')
});
when you hit /ding
, the route will reply with
{
"ding": {
"cpu": [
1.67236328125,
1.828125,
1.927734375
],
"mem": 1429590016,
"time": 1425933629427,
"heap": 13402416,
"loop": 4.86166600137949
}
}
The following options are available when registering the plugin:
false
to put the properties at the root level. Defaults to "ding".{ auth: false }
.null
.FAQs
Informational status page for Hapi apps
We found that hapi-ding demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.