open-index/open-npm huggingface dataset:
npm package: @proselog/email-api
Description: Email API for Proselog.
Latest version: 0.1.3

Email API for Proselog.

Not intended for use outside of Proselog.

```ts
import { sendEmail } from "@proselog/email-api"

const { data, error } = await sendEmail(
  {
    from: { email: "from@your.com", name: "Your Name" },
    to: [{ email: "customer@customer.com", name: "Customer Name" }],
    content: `
  Hello %%to.name%%

  Use the following token to login: 

  %%token%%
  `,
    data: [{ token: "SOME_TOKEN" }],
  },
  {
    // The token that matches API_TOKEN in your cloudflare worker secrets
    token: "API_TOKEN",
  }
)
```