JSPM

remi-timeout

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q29939F
  • License MIT

Registration timeout hook for remi

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

Dependency Status Build Status npm version Coverage Status

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