Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Get a quick overview of the status of an express server (uptime, version, git sha, stats)

License

Notifications You must be signed in to change notification settings

opencollective/express-server-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

express-server-status

Get a quick overview of the status of an express server (uptime, version, git sha, stats)

Installation

npm install express-server-status --save

Usage

var serverStatus = require('express-server-status');
var express = require('express');
var app = express();

app.use('/status', serverStatus(app));

Example

curl localhost:3000/status

{ 
  server: { 
    status: 'up',
    description: 'OpenCollective API',
    version: '0.0.5',
    uptime: 3,
    uptime_human: 'a few seconds ago',
    requests: { 
      total: 1, 
      last_minute: 0, 
      last_5mn_avg: 0, 
      last_15mn_avg: 0 
    } 
  },
  git: { branch: 'master', sha: '1f86caa' } 
}

About

Get a quick overview of the status of an express server (uptime, version, git sha, stats)

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages