mrTomatolegit / patreon-webhooks

Patreon webhooks handler with caching and IntelliSense support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Patreon Webhooks

A patreon webhook handler and cache manager

Installation

npm i patreon-webhooks

Example Usage

const WEBHOOK_SECRET = 'insert webhook secret here';

const { Hub } = require('patreon-webhooks');
const hub = new Hub();

const express = require('express');
const app = express();

app.use('/webhooks/patreon', hub.webhooks(WEBHOOK_SECRET));

hub.on('memberCreate', member => console.log(member.id));

app.listen(80);

License

This NPM module is under the MIT License
Please refer yourself to the LICENSE file

About

Patreon webhooks handler with caching and IntelliSense support

License:MIT License


Languages

Language:JavaScript 100.0%