standardwebhooks
v1.1.1
Published
Standard Webhooks for TypeScript
Readme
Typescript/Javascript library for Standard Webhooks
Example
Verifying a webhook payload:
import { Webhook } from "standardwebhooks"
const wh = new Webhook(base64_secret);
wh.verify(webhook_payload, webhook_headers);Development
Requirements
- node
- npm
Building the library
npm install
npm run buildContributing
Before opening a PR be sure to format your code!
npm run check:fixRunning Tests
Simply run:
npm test