Package Exports
- remi-timeout
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (remi-timeout) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
remi-timeout
Registration timeout hook for remi
Installation
npm install remi-timeout
Example Usage
const remi = require('remi')
const remiTimeout = require('remi-timeout')
const registrator = remi({})
registrator.hook(remiTimeout(1000))
// this will throw a timeout error because 'plugin' never finishes registration
registrator.register().catch(err => console.error(err))
function plugin(app, opts, next) {
// next is never called
}
plugin.attributes = { name: 'plugin' }
License
MIT © Zoltan Kochan