remi-runner
A remi extension that allows registering plugins that are returning promises during their registration or are registered synchronously
Installation
npm install remi-runner
Example Usage
const remi =const remiRunner =const app = {}const registrator =registratorregistrator// a traditional plugin that uses an error-first-callback// this will work w/o using the remi-runner{// ...}cbPluginattributes = name: 'cbPlugin'// a plugin that returns a Promise. This type of plugin will be registered correctly// only if remi is hooked with remi-runner{// ...return Promise}cbPluginattributes = name: 'promisePlugin'// a synchronous plugin. This type of plugin will be registered correctly// only if remi is hooked with remi-runner{// ...}cbPluginattributes = name: 'syncPlugin'
License
MIT © Zoltan Kochan