Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

healthcheck-ping

Package Overview
Dependencies
Maintainers
5
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

healthcheck-ping

Express middleware exposing a health check endpoint

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

NPM Version Build Status Coverage Status Dependencies

healthcheck-ping

:ambulance: Express middleware that exposes the health state.

This middleware can be used in any express application to provide a simple health check endpoint. The default endpoint is "_health" but you can provide a different endpoint name if you want.

The endpoint returns a static json response:

{
    "status": "OK"
}

Installation

$ npm install healthcheck-ping --save

Usage

var createHealthcheckMiddleware = require('healthcheck-ping');

var server = express();

server.use(createHealthcheckMiddleware()); // mounted as /_health

If you want the healthcheck to be available on a custom endpoint you can do so:

server.use(createHealthcheckMiddleware('foobar'));

Keywords

FAQs

Package last updated on 03 Jul 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc