node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey »

advisor

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
#...