1.0.0 • Published 2 months ago

standardwebhooks v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

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
1.0.0

2 months ago