You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

fastify-status

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-status

Returns common info about fastify server. Could be used for healthchecks and status monitoring.

2.2.1
latest
Source
npmnpm
Version published
Weekly downloads
16
166.67%
Maintainers
1
Weekly downloads
 
Created
Source

fastify-status

fastify-status logo

NPM Version Downloads Count Vunerabilities Count Build Status License Codecov LGTM Alerts LGTM Grade

Returns common info about fastify server. Could be used for healthchecks and status monitoring.

ToC

Installation

npm i fastify-status --save

Back to top

Usage

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.

Back to top

Format

{
  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'
}

Back to top

Changelog

See changelog.

Back to top

See also

License

Licensed under MIT.

Back to top

Keywords

fastify-plugin

FAQs

Package last updated on 24 May 2020

Did you know?

Socket

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.

Install

Related posts