Socket
Socket
Sign inDemoInstall

@shortlyster/its-alive

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shortlyster/its-alive

livechecks middleware


Version published
Maintainers
1
Created
Source

It's Alive Middleare

The standard express middleware for @shortlyster apps to perform readiness and liveness checks

Usage

npm add @shortlyster/its-alive
yarn add @shortlyster/its-alive
import * as express from 'express';
import * as itsAlive from '@shortlyster/its-alive';

const app = express();

app.use(itsAlive());

This will make the app to respond to the following routes:

GET /_health/ready -> 200 OK
GET /_health/alive -> 200 OK

Dynamic Checks

one can specify application specific dynamic checks by passing in the following options:

app.use(itsAlive({
  readyWhen: () => something(),
  aliveWhen: () => something()
}));

Promises are totes supported:

All code in this repository released under the terms of the MIT license.

Copyright (C) 2017 Shortlyster Pty Ltd.

FAQs

Package last updated on 21 Dec 2017

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