resend 4.5.1 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
- package/readme.md +30 -2
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "resend",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.2",
|
|
4
4
|
"description": "Node.js library for the Resend API",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"homepage": "https://github.com/resendlabs/resend-node#readme",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@react-email/render": "1.
|
|
45
|
+
"@react-email/render": "1.1.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@biomejs/biome": "1.9.4",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"@types/react": "19.1.2",
|
|
52
52
|
"jest": "29.7.0",
|
|
53
53
|
"jest-fetch-mock": "3.0.3",
|
|
54
|
-
"ts-jest": "29.3.
|
|
54
|
+
"ts-jest": "29.3.4",
|
|
55
55
|
"ts-node": "10.9.2",
|
|
56
56
|
"tsup": "7.2.0",
|
|
57
57
|
"typescript": "5.8.3"
|
|
58
58
|
},
|
|
59
|
-
"packageManager": "pnpm@10.
|
|
59
|
+
"packageManager": "pnpm@10.11.1"
|
|
60
60
|
}
|
package/readme.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+

|
|
3
|
+
|
|
4
|
+
<p align="center">
|
|
5
|
+
<a href="https://resend.com/docs/send-with-nodejs">Quickstart Docs</a>
|
|
6
|
+
</p>
|
|
7
|
+
|
|
8
|
+
<p align="center">
|
|
9
|
+
Framework guides
|
|
10
|
+
</p>
|
|
11
|
+
<p align="center">
|
|
12
|
+
<a
|
|
13
|
+
- <a href="https://resend.com/docs/send-with-nextjs">Next.js</a>
|
|
14
|
+
- <a href="https://resend.com/docs/send-with-remix">Remix</a>
|
|
15
|
+
- <a href="https://resend.com/docs/send-with-nuxt">Nuxt</a>
|
|
16
|
+
- <a href="https://resend.com/docs/send-with-express">Express</a>
|
|
17
|
+
- <a href="https://resend.com/docs/send-with-redwoodjs">RedwoodJS</a>
|
|
18
|
+
- <a href="https://resend.com/docs/send-with-hono">Hono</a>
|
|
19
|
+
- <a href="https://resend.com/docs/send-with-bun">Bun</a>
|
|
20
|
+
- <a href="https://resend.com/docs/send-with-astro">Astro</a>
|
|
21
|
+
</p>
|
|
22
|
+
|
|
1
23
|
# Resend Node.js SDK
|
|
2
24
|
|
|
3
25
|
Node.js library for the Resend API.
|
|
@@ -21,11 +43,11 @@ Send email with:
|
|
|
21
43
|
|
|
22
44
|
## Setup
|
|
23
45
|
|
|
24
|
-
First, you need to get an API key, which is available in the [Resend Dashboard](https://resend.com).
|
|
46
|
+
First, you need to get an API key, which is available in the [Resend Dashboard](https://resend.com/api-keys).
|
|
25
47
|
|
|
26
48
|
```js
|
|
27
49
|
import { Resend } from 'resend';
|
|
28
|
-
const resend = new Resend('
|
|
50
|
+
const resend = new Resend('re_xxxx...xxxxxx');
|
|
29
51
|
```
|
|
30
52
|
|
|
31
53
|
## Usage
|
|
@@ -42,6 +64,9 @@ await resend.emails.send({
|
|
|
42
64
|
});
|
|
43
65
|
```
|
|
44
66
|
|
|
67
|
+
> [!NOTE]
|
|
68
|
+
> In order to send from your own domain, you will first need to verify your domain in the [Resend Dashboard](https://resend.com/domains).
|
|
69
|
+
|
|
45
70
|
## Send email using HTML
|
|
46
71
|
|
|
47
72
|
Send an email custom HTML content:
|
|
@@ -87,6 +112,9 @@ await resend.emails.send({
|
|
|
87
112
|
});
|
|
88
113
|
```
|
|
89
114
|
|
|
115
|
+
> [!NOTE]
|
|
116
|
+
> If your endpoint is a JS/TS file, render the template (i.e., pass `EmailTemplate({firstName="John", product="MyApp"})` instead of the component).
|
|
117
|
+
|
|
90
118
|
## License
|
|
91
119
|
|
|
92
120
|
MIT License
|