Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
a simple Hook which creates a httpServer and emits requests as hook.io events
CoffeeScript JavaScript
branch: master

This branch is 11 commits ahead of travisperson:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
ReadMe.md
config.json
package.json

ReadMe.md

Installation

 npm install hook.io-webhook -g

Usage

 hookio-webhook

Starts up a webserver which listens for incoming HTTP requests and emits the requests to your hook.io network

hook.io-webhook will also attempt to parse all incoming form and query string data that may conform to JSON-RPC 1.0. If it cannot parse any data, hookio-webhook will fall-back to emit a generic request event containing the entire body of the http request.

Programmatically

#! /usr/bin/env node
var Webhook = require('../lib/webhook').Webhook;

var webhookServer = new Webhook({
  name: 'webhook-server',
  port: 9001,
});

webhookServer.start();
Something went wrong with that request. Please try again.