simple-webhooks
All versions prior 1.0.0 are experimental beta versions!
Webhooks made simple!
Features
- Client and server side implementations.
- Protected against timing attacks.
- Sequential executing of jobs.
🚀 Quick start
-
Install the package with npm.
npm install simple-webhooks -
Start developing.
Example of a Webhook server listening requests from port 8338.
// server.jsconst WebhookServer = ;const secret = 'shared secret between client and server';const port = 8338;const server =secret: secretport: portconsole;;serverExample of a Webhook client that can trigger the jobs in the example server running on same host.
// client.jsconst WebhookClient = ;const secret = 'shared secret between client and server';const url = 'http://localhost';const port = 8338;const client = secret url port ;client;