@flatfile/plugin-webhook-event-forwarder
TypeScript icon, indicating that this package has built-in type declarations

0.6.1 • Public • Published

The @flatfile/plugin-webhook-event-forwarder plugin forwards events via webhook for clients to manipulate at their endpoints in a language-agnostic way.

Event Type: listener.on('**')

Parameters

url - string

The url parameter takes the webhook url where the events will be forwarded.

callback - function

The callback parameter takes a function that will be called with the webhook response and the event object.

options - object

The options parameter takes an object with the following properties:

  • debug - boolean - (optional) - Whether to log debug messages.

Usage

Install

npm i @flatfile/plugin-webhook-event-forwarder

Import

import { webhookEventForwarder } from "@flatfile/plugin-webhook-event-forwarder";

listener.js

listener.use(webhookEventForwarder("https://webhook.site/...", (data, event) => {
  console.log(data, event);
}));

/@flatfile/plugin-webhook-event-forwarder/

    Package Sidebar

    Install

    npm i @flatfile/plugin-webhook-event-forwarder

    Weekly Downloads

    38

    Version

    0.6.1

    License

    ISC

    Unpacked Size

    15.6 kB

    Total Files

    12

    Last publish

    Collaborators

    • sarocu
    • dboskovic
    • jmmander
    • bangarang
    • carlbrugger
    • flatfileinfra
    • flatderek
    • bigcountrycrane
    • rjhyde
    • sambarrowclough
    • mmccooyyy
    • hjordan1990
    • nlazaris
    • lionhummer