Standard Webhooks for TypeScript
npm install standardwebhooksTypescript/Javascript library for Standard Webhooks
Verifying a webhook payload:
``javascript
import { Webhook } from "standardwebhooks"
const wh = new Webhook(base64_secret);
wh.verify(webhook_payload, webhook_headers);
`
- node
- yarn
sh
yarn
yarn build
`Contributing
Before opening a PR be sure to format your code!
`sh
yarn lint:fix
`Running Tests
Simply run:
`sh
yarn test
``