Skip to content

The module provides plugin attributes and version validation for trooba framework

License

Notifications You must be signed in to change notification settings

trooba/trooba-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trooba-plugin

codecov Build Status NPM Downloads Known Vulnerabilities

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.

Install

npm install trooba-plugin -S

Usage

const plugin = require('trooba-plugin');

function myPlugin(pipe) {
    pipe.on('request', () => {});
}

module.exports = plugin(myPlugin, {
    troobaVersion: '^2',
    runtime: 'generic'
})

About

The module provides plugin attributes and version validation for trooba framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published