{"_id":"standardwebhooks","name":"standardwebhooks","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"standardwebhooks","version":"1.0.0","description":"Standard Webhooks for TypeScript","author":{"name":"Standard Webhooks"},"repository":{"type":"git","url":"git+https://github.com/standard-webhooks/standard-webhooks.git"},"homepage":"https://github.com/standard-webhooks/standard-webhooks/tree/main/libraries/javascript","type":"commonjs","keywords":["webhooks","typescript"],"license":"MIT","main":"./dist/index.js","typings":"./dist/index.d.ts","scripts":{"build":"tsc","prepare":"yarn run build","test":"jest","prepublishOnly":"yarn lint","lint:eslint":"eslint --ignore-path .lintignore --ext .js,.jsx,.ts,.tsx src","lint:prettier":"prettier --ignore-path .lintignore --write src/**.ts","lint":"yarn run lint:prettier && yarn run lint:eslint --max-warnings=0","lint:fix":"yarn run lint:prettier --write && yarn run lint:eslint --fix"},"dependencies":{"@stablelib/base64":"^1.0.0","fast-sha256":"^1.3.0"},"devDependencies":{"@stablelib/utf8":"^1.0.2","@types/jest":"^29.5.11","@typescript-eslint/eslint-plugin":"^7.1.0","@typescript-eslint/parser":"^7.1.0","@typescript-eslint/typescript-estree":"^7.0.0","eslint":"^8.57.0","jest":"^29.7.0","prettier":"^3.2.2","ts-jest":"^29.1.1","typescript":"^5.3.3"},"_id":"standardwebhooks@1.0.0","gitHead":"929bf0c1928b188287eaf88d0a9f0a4e87df6499","bugs":{"url":"https://github.com/standard-webhooks/standard-webhooks/issues"},"_nodeVersion":"21.6.1","_npmVersion":"10.4.0","dist":{"integrity":"sha512-BbHGOQK9olHPMvQNHWul6MYlrRTAOKn03rOe4A8O3CLWhNf4YHBqq2HJKKC+sfqpxiBY52pNeesD6jIiLDz8jg==","shasum":"5faa23ceacbf9accd344361101d9e3033b64324f","tarball":"https://registry.npmjs.org/standardwebhooks/-/standardwebhooks-1.0.0.tgz","fileCount":8,"unpackedSize":12909,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCR8SIVfvbeRJu1pEoeqzGS9+15xeX4ogotSrrym3FkMQIgHO0sQFO9nseDIw4uiXMmZXmc4IbSheGB1AKhwJf58KI="}]},"_npmUser":{"name":"tasn","email":"npm@stosb.com"},"directories":{},"maintainers":[{"name":"tasn","email":"npm@stosb.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/standardwebhooks_1.0.0_1709559580455_0.28878742514835953"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-04T13:39:40.454Z","1.0.0":"2024-03-04T13:39:40.614Z","modified":"2024-03-04T13:39:41.345Z"},"maintainers":[{"name":"tasn","email":"npm@stosb.com"}],"description":"Standard Webhooks for TypeScript","homepage":"https://github.com/standard-webhooks/standard-webhooks/tree/main/libraries/javascript","keywords":["webhooks","typescript"],"repository":{"type":"git","url":"git+https://github.com/standard-webhooks/standard-webhooks.git"},"author":{"name":"Standard Webhooks"},"bugs":{"url":"https://github.com/standard-webhooks/standard-webhooks/issues"},"license":"MIT","readme":"Typescript/Javascript library for Standard Webhooks \n\n# Example\n\nVerifying a webhook payload:\n\n```javascript\nimport { Webhook } from \"standardwebhooks\"\n\nconst wh = new Webhook(base64_secret);\nwh.verify(webhook_payload, webhook_headers);\n```\n\n# Development\n\n## Requirements\n\n - node\n - yarn\n\n## Building the library\n```sh\nyarn\nyarn build\n```\n\n## Contributing\n\nBefore opening a PR be sure to format your code!\n\n```sh\nyarn lint:fix\n```\n\n## Running Tests\n\nSimply run:\n\n```sh\nyarn test\n```\n","readmeFilename":"README.md"}