1.0.0 • Published 3 years ago

visor v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
3 years ago

visor

Lightweight and extensible program monitoring for node

Installation

With npm:

$ npm install visor

Usage

var visor = require('visor');

// Use visor to track some interesting properties:
visor.requests = 0;
visor.errors = 0;

// Later...

function handleRequest(err, req) {
	visor.requests++;
	if (err) { visor.errors++; }
}

// Several transports are available to query the visor externally:

// visor-file writes the visor to a JSON file at a set interval.
var visorFile = require('visor-file');

// visor-http makes the visor queryable via a RESTful HTTP interface.
var visorHttp = require('visor-http');

// visor-socketio makes the visor queryable via Socket.IO.
var visorSocketIO = require('visor-socketio');