2.1.0 • Published 9 years ago

advisor v2.1.0

Weekly downloads
3
License
ISC
Repository
github
Last release
9 years ago

advisor

A simple Hapi application/plugin for caching NodeSecurity Advisory data.

Run as a Plugin

var Hapi = require('hapi');
var advisor = require('advisor');

var server = new Hapi.Server();
server.connection({ port: 8000 });

server.register(
	{
		register: advisor,
	    options: {
	        /*interval: 50,
	        url: 'http://localhost:8000'*/
	    }
	},
	function (err) {
		if (err) { throw err; }

		server.start(function (err) {
			if (err) { throw err; }
            console.log('Server started at: ' + server.info.uri);
		});
	}
);

Run Standalone

$ npm i -g advisor
# ...
$ advisor
#...