Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

standardwebhooks

Standard Webhooks for TypeScript

webhooks, 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
  • 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