fix(docs): correct webhook SDK package name (#363)

This commit is contained in:
KM Koushik
2026-02-28 07:15:04 +11:00
committed by GitHub
parent b2ed09e7a7
commit 1c644740f2
+6 -6
View File
@@ -126,19 +126,19 @@ HMAC-SHA256(secret, "${timestamp}.${rawBody}")
<CodeGroup> <CodeGroup>
```bash npm ```bash npm
npm install usesend npm install usesend-js
``` ```
```bash yarn ```bash yarn
yarn add usesend yarn add usesend-js
``` ```
```bash pnpm ```bash pnpm
pnpm add usesend pnpm add usesend-js
``` ```
```bash bun ```bash bun
bun add usesend bun add usesend-js
``` ```
</CodeGroup> </CodeGroup>
@@ -146,7 +146,7 @@ bun add usesend
### Next.js App Router ### Next.js App Router
```typescript ```typescript
import { UseSend } from "usesend"; import { UseSend } from "usesend-js";
const usesend = new UseSend("us_your_api_key"); const usesend = new UseSend("us_your_api_key");
const webhooks = usesend.webhooks(process.env.USESEND_WEBHOOK_SECRET!); const webhooks = usesend.webhooks(process.env.USESEND_WEBHOOK_SECRET!);
@@ -182,7 +182,7 @@ export async function POST(request: Request) {
```typescript ```typescript
import express from "express"; import express from "express";
import { Webhooks } from "usesend"; import { Webhooks } from "usesend-js";
const webhooks = new Webhooks(process.env.USESEND_WEBHOOK_SECRET!); const webhooks = new Webhooks(process.env.USESEND_WEBHOOK_SECRET!);