webhook-router

0.0.1 • Public • Published

webhook-demux

build status Coverage Status

Routes a single webhook endpoint to multiple webhook endpoints depending on content of the JSON request body.

how

Webhooks are sent to this server, and you configure a config.json file (or whatever's in the --config argument) that looks like:

[{
    "match": { "type": "blue" },
    "url": "http://blue.com/"
}]

Match is a JavaScript object with a subset of properties that should _.matches a request data subset. Then it routes the same exact request with the same headers and method to a different url, given by url.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    0

Package Sidebar

Install

npm i webhook-router

Weekly Downloads

0

Version

0.0.1

License

ISC

Last publish

Collaborators

  • tmcw
  • aaronlidman