patreon-webhooks
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i patreon-webhooks

Weekly Downloads

8

Version

1.0.2

License

MIT

Unpacked Size

29.3 kB

Total Files

14

Last publish

Collaborators

  • mrtomatolegit