hapi-nudge

1.1.1 • Public • Published

hapi-nudge

Build Status

A Hapi plugin to prevent Heroku dynos from sleeping.

Installation

npm install hapi-nudge

Usage

var Nudge = require('hapi-nudge')

server.register({
    register: Nudge,
    options: options,
})

Options

  • hostname String

    The hostname. Default server.info.host.

  • pathname String

    The pathname. Default '/nudge'.

  • port Number

    The port. Default server.info.port.

  • protocol String

    The protocol. Default server.info.protocol.

  • interval Number

    How often the server should be nudged. Default 60e3.

License

See LICENSE.

Readme

Keywords

none

Package Sidebar

Install

npm i hapi-nudge

Weekly Downloads

3

Version

1.1.1

License

none

Last publish

Collaborators

  • christophercliff