@distilled.cloud/resend
v1.0.0-rc.15
Published
Keywords
Readme
@distilled.cloud/resend
Effect-native SDK for resend.
Installation
npm install @distilled.cloud/resend effectQuick start
import { Effect, Layer } from "effect";
import * as FetchHttpClient from "effect/http/FetchHttpClient";
import * as Resend from "@distilled.cloud/resend";
const program = Effect.gen(function* () {
const result = yield* Resend.getEmails({});
return result;
});
const Live = Layer.mergeAll(
FetchHttpClient.layer,
Resend.CredentialsFromEnv,
Resend.ResendProtocol,
);
program.pipe(Effect.provide(Live), Effect.runPromise);Auth
Required: RESEND_API_KEY. Optional: RESEND_API_BASE_URL.
