Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

mod_status

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mod_status

mod_status for Node

Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
120
-37.17%
Maintainers
1
Weekly downloads
 
Created
Source

mod_status for Node

Simple express/connect middleware to provide an "apache-like" /status.html page.

Installation

npm install mod_status

Usage

var express = require('express'),
    status = require('../lib/index.js');

var app = express();

app.use(status({
    url: '/status',
    version: true,
    uptime: true,
    check: function(req) {
        if (req.something == false) {
            return false; //Don't show status
        }
        return true; //Show status
    }
}));

console.log('Go to: http://127.0.0.1:8000/status');
app.listen(8000);

Configuration

  • url - The URL to respond to, defaults to /status.html
  • version - Show the Node.js version in the output. Default: false
  • uptime - Show the uptime of the process in the output: Default: false
  • text - Provide custom response text, will override all the above. Default: null
  • check - A function to check the request to see if the status page should be shown. Default: returns true to always show

Build Status

Build Status

Node Badge

NPM

Keywords

mod_status

FAQs

Package last updated on 22 Aug 2013

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