plugiator
A hapi plugins creator
How to install it?
npm install --save plugiator
Usage
plugiator.create(attributes, register)
Creates a plugin with the passed in attributes and register function.
const plugiator = { server } moduleexports = plugiator // or set just the namemoduleexports = plugiator
plugiator.anonymous(register)
Creates a plugin with the passed in register function and random attributes. Might be useful for unit tests.
{ server } moduleexports = plugiator
plugiator.noop([attributes])
Creates a plugin that does nothing.
moduleexports = plugiator // can have attributes specifiedmoduleexports = plugiator //ormoduleexports = plugiator
License
MIT © Zoltan Kochan