standardwebhooks
v1.0.0
Published
Standard Webhooks for TypeScript
Downloads
17,810
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
- yarn
Building the library
yarn
yarn build
Contributing
Before opening a PR be sure to format your code!
yarn lint:fix
Running Tests
Simply run:
yarn test