
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
fastify-status
Advanced tools
Returns common info about fastify server. Could be used for healthchecks and status monitoring.
Returns common info about fastify server. Could be used for healthchecks and status monitoring.
npm i fastify-status --save
Example with default plugin options.
const fastify = require('fastify');
const statusPlugin = require('fastify-status');
const app = fastify();
app.register(statusPlugin, {
info: '/__info__',
alive: '/__alive__',
});
Use alive
for healthchecks and info
to get information and some stats of your server.
If info
or alive
is not present in config, then apropriate route will not be added.
{
uptime: '0d 0h 0m 10s',
memory: {
rss: '50Mb',
external: '40Mb',
heapTotal: '30Mb',
heapUsed: '20Mb',
},
start: '2020-05-10T07:41:20.389Z',
env: 'test',
name: 'my-server',
version: '1.0.0',
node: 'v14.0.0'
}
See changelog.
Licensed under MIT.
FAQs
Returns common info about fastify server. Could be used for healthchecks and status monitoring.
The npm package fastify-status receives a total of 16 weekly downloads. As such, fastify-status popularity was classified as not popular.
We found that fastify-status demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.