Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@earendil-works/mailhook

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@earendil-works/mailhook

TypeScript SDK for the Mailhook API

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
2
Created
Source

@earendil-works/mailhook

TypeScript SDK for the Mailhook API.

Installation

npm install @earendil-works/mailhook
# or
pnpm add @earendil-works/mailhook

Usage

import { Mailhook } from "@earendil-works/mailhook";
import { verifyAndParseWebhook } from "@earendil-works/mailhook/webhook";

const mailhook = new Mailhook({
  apiKey: process.env.MAILHOOK_API_KEY!,
});

const domains = await mailhook.domains.list();
console.log(domains.items);

const event = verifyAndParseWebhook(
  rawBody,
  process.env.MAILHOOK_WEBHOOK_SECRET!,
  undefined,
  undefined,
  undefined,
  request.headers as Record<string, string>,
);

Publishing

This package is published from sdks/typescript:

pnpm --filter @earendil-works/mailhook build
pnpm --filter @earendil-works/mailhook publish --access public

Use pnpm --filter @earendil-works/mailhook publish --dry-run to inspect the tarball before publishing.

Keywords

mailhook

FAQs

Package last updated on 05 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts