Never-ending Pumpkin Mulch

    @includable/middleware-health

    1.0.1 • Public • Published

    middleware-health

    This package adds a /health endpoint that can be used for status checks and lists some request metrics:

    {
       "status": 200,
       "friendlyName": "OK",
       "environment": "production",
       "uptime": 80374,
       "requests": 208,
       "responseTime": 0.001
    }

    Installation

    npm i @includable/middleware-health

    Usage

    const express = require('express')
    const health = require('@includable/middleware-health')
    
    app.use(health())
    
    app.listen(process.env.PORT || 3000, () => console.log(`Example app running.`))

    Install

    npm i @includable/middleware-health

    DownloadsWeekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.14 kB

    Total Files

    3

    Last publish

    Collaborators

    • tschoffelen