1.0.2 • Published 5 years ago

hapi-roller v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Hapi rollbar

Hapi plugin for rollbar

Getting started

const Hapi = require('@hapi/hapi');
const plugin = require('hapi-rollbar');

const server = Hapi.Server();

server.register({
  plugin,
  options: {
    accessToken: process.env.ROLLBAR_ACCESS_TOKEN,
    captureUncaught: true,
    captureUnhandledRejections: true,
  },
});

Options are based directly to Rollbar so check the docs for a full list.

Development

  • Run yarn test-watch to watch tests
  • Run yarn deploy to run tests, push and publish package

Requirements

  • Node 10+