Skip to main content
Home
This release is 4 versions behind 0.4.0 — the latest version of @upyo/core. Jump to latest

@upyo/core@0.3.1
Built and signed on GitHub Actions

Works with
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score100%
Downloads701/wk
Published3 months ago (0.3.1)

Simple email sending library for Node.js, Deno, Bun, and edge functions

interface Attachment

Represents an attachment in an email message.

Properties

readonly
inline: boolean

Whether the attachment is intended to be used for inline images.

readonly
filename: string

The filename of the attachment, which is used for display purposes and may not be the actual name of the file on disk.

The content of the attachment as a byte array. It can be a Promise that resolves to a Uint8Array, allowing for asynchronous loading of the attachment content.

readonly
contentType: `${string}/${string}`

The media type of the attachment, which indicates the type of content and how it should be handled by email clients.

The content ID of the attachment, which is used to reference inline images in HTML emails.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@upyo/core

Import symbol

import { type Attachment } from "@upyo/core";
or

Import directly with a jsr specifier

import { type Attachment } from "jsr:@upyo/core";

Add Package

pnpm i jsr:@upyo/core
or (using pnpm 10.8 or older)
pnpm dlx jsr add @upyo/core

Import symbol

import { type Attachment } from "@upyo/core";

Add Package

yarn add jsr:@upyo/core
or (using Yarn 4.8 or older)
yarn dlx jsr add @upyo/core

Import symbol

import { type Attachment } from "@upyo/core";

Add Package

vlt install jsr:@upyo/core

Import symbol

import { type Attachment } from "@upyo/core";

Add Package

npx jsr add @upyo/core

Import symbol

import { type Attachment } from "@upyo/core";

Add Package

bunx jsr add @upyo/core

Import symbol

import { type Attachment } from "@upyo/core";