Skip to content

holidayextras/plugin-transformer

Repository files navigation

plugin-transformer

About

A hapi plugin that wraps Transformer exposing it's solitary getConfiguration() function

Getting Started

If you want to work on this repo you will need to install the dependencies

$ npm install git+ssh://[email protected]/holidayextras/plugin-transformer.git

then in your file,

var pluginTransformer = require( 'plugin-transformer' );

Registering with the server

This plugin conforms to the hapijs plugin interface.

While bootstrapping your Hapi server, include the plugin like so:

server.pack.register( [
	require( 'plugin-harvest' )
], function() {
	server.start( function() {
		console.log( 'server started with plugin-harvest plugin initialised' );
	} );
} );

This plugin conforms to our standard plugin/promise interface defined here (see 'Promises')

Contributing

Code is linted checked against the style guide with make-up, running npm test will run all tests required.

License

Copyright (c) 2015 Holiday Extras Ltd Licensed under the MIT license.