Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrtomatolegit/patreon-webhooks
Patreon webhooks handler with caching and IntelliSense support
https://github.com/mrtomatolegit/patreon-webhooks
cache caching express expressjs intellisense intellisense-support patreon patreon-api webhook-server webhooks
Last synced: about 1 month ago
JSON representation
Patreon webhooks handler with caching and IntelliSense support
- Host: GitHub
- URL: https://github.com/mrtomatolegit/patreon-webhooks
- Owner: mrTomatolegit
- License: mit
- Created: 2021-06-10T05:50:31.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-03T18:57:45.000Z (almost 2 years ago)
- Last Synced: 2024-09-28T12:41:03.753Z (about 2 months ago)
- Topics: cache, caching, express, expressjs, intellisense, intellisense-support, patreon, patreon-api, webhook-server, webhooks
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Patreon Webhooks
A patreon webhook handler and cache manager
# Installation
```sh
npm i patreon-webhooks
```# Example Usage
```js
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](./LICENSE)