git-webhooks

git-webhooks - a simple node server that responds to github post-receive events with meaningful data

Usage no npm install needed!

<script type="module">
  import gitWebhooks from 'https://cdn.skypack.dev/git-webhooks';
</script>

README

Git[hub] Webhooks

After many search on NPM i haven't found what i need. This packet is really simple, he listen any Github webhooks on given port.

Dependencies

  • eventemitter2

Installation

npm install git-webhooks

Usage

Display the payload data:

var git = require('git-webhooks').onPort(9001);

git.on('push', function(payload) {
  console.log(payload);
});

Auto-sync FTP with Github repo:

(coming soon)