0.1.0 • Published 5 years ago

uipath-webhooks v0.1.0

Weekly downloads
5
License
-
Repository
-
Last release
5 years ago

uipath-webhooks

Simple Node.JS helper module for Webhook based integration.

Table of content

  1. Installation
  2. Usage
  3. License

Installation

npm install uipath-webhooks

Usage

var util = require('util');
var WebhookServer = require('uipath-webhooks').WebhookServer;

var SECRET = 'abcdef';
var PORT = 3000;

var server = new WebhookServer(SECRET);

server.on('job.faulted', function (event) {
        console.log(util.inspect(event));
});

server.listen(PORT);

License

MIT