1.0.0 • Published 6 years ago

tealeaf v1.0.0

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

tealeaf 🍵

A Hapi 17 plugin that adds /teapot and has a 0.00001% chance of forcing any request to return 418.

Installation

npm i tealeaf

Usage

const hapi = require('hapi');
const tealeaf = require('tealeaf');

(async function() {
  const server = hapi.server({port: 3000});

  await server.register([
		{
			tealeaf,
			options: {
				chance: 50 // Percent
			}
		}
	]);

  await server.start();
})();