Noodles, Poodles and More!
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

advisor

2.1.0 • Public • Published

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

Keywords

none

install

npm i advisor

Downloadsweekly downloads

0

version

2.1.0

license

ISC

repository

githubgithub

last publish

collaborators

  • avatar