The module provides a way to assign trooba plugins or handlers with necessary attributes required by trooba as well as specify trooba version that plugin requires.
npm install trooba-plugin -S
const plugin = require('trooba-plugin');
function myPlugin(pipe) {
pipe.on('request', () => {});
}
module.exports = plugin(myPlugin, {
troobaVersion: '^2',
runtime: 'generic'
})