oppsy

An EventEmitter useful for collecting hapi server ops information.

Latest Version: 3.0.0
hapi-family
Installation:

npm: npm install @hapi/oppsy

yarn: yarn add @hapi/oppsy

Module Status:
Version License Node Dependencies CI
3.0.0
hapi helmet github logo
BSD 16, 18, 20 Dependency Status Build Status

Usage

const Hapi = require('@hapi/hapi');
const Oppsy = require('@hapi/oppsy');

const server = new Hapi.Server();
const oppsy = new Oppsy(server);
oppsy.on('ops', (data) => {
  console.log(data);
});

await server.start();

oppsy.start(1000);

This creates a new Oppsy object and starts collecting information every 1000 miliseconds