The official Mailofly library for Node.js and TypeScript. Type-safe, fast, and ships with zero unnecessary baggage.Package:@mailofly/node · Requires: Node.js 18+ · Quickstart:Node.js guide
import { Mailofly, MailoflyError } from "@mailofly/node";try { await client.identities.list();} catch (e) { if (e instanceof MailoflyError) { // e.status — the HTTP status code (400, 401, 429, etc.) // e.error — a short error code string // e.detailMessage — a readable explanation of what went wrong console.error(e.status, e.error, e.detailMessage); }}