Skip to main content
Home

@upyo/core@0.4.0
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%
Downloads82/wk
Published2 weeks ago (0.4.0)

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

I
Address

A pair of name (which is optional) and email address.

I
Attachment

Represents an attachment in an email message.

f
comparePriority

Compares two priority levels and returns a number indicating their relative order.

f
createMessage

Creates a new email Message based on the provided constructor parameters. This function provides a more convenient API for creating messages compared to constructing a Message object directly.

T
EmailAddress

A type alias for email address strings that must contain an @ symbol.

f
formatAddress

Formats an address object into a string representation. This function is an inverse of the parseAddress function.

T
ImmutableHeaders

Represents the headers of an email message. This type is a supertype of the standard Headers class, which is used to manage HTTP headers. Note that this type does not include methods for modifying the headers, such as append, delete, or set. It is intended to be used for read-only access to the headers of an email message.

f
isAttachment

Checks if the provided value is an Attachment object.

f
isEmailAddress

Type guard function that checks if a given value is a valid email address.

I
Message

Represents an email message with various properties such as sender, recipients, subject, content, and attachments.

I
MessageConstructor

A constructor interface for creating a new email message using the createMessage function.

T
MessageContent

Represents the content of an email message, which can be either HTML or plain text. The html property is optional, and if it is provided, the text property may also be included for compatibility with email clients that do not support HTML.

f
parseAddress

Parses a string representation of an email address into an Address object. This function is an inverse of the formatAddress function.

T
Priority

The priority levels for email messages.

T
Receipt

The response from the email service after sending an email message.

I
Transport

A common interface for email sending services.

I
TransportOptions

Options for sending messages with the email service.

I
Address

A pair of name (which is optional) and email address.

T
EmailAddress

A type alias for email address strings that must contain an @ symbol.

f
formatAddress

Formats an address object into a string representation. This function is an inverse of the parseAddress function.

f
isEmailAddress

Type guard function that checks if a given value is a valid email address.

f
parseAddress

Parses a string representation of an email address into an Address object. This function is an inverse of the formatAddress function.

I
Attachment

Represents an attachment in an email message.

f
isAttachment

Checks if the provided value is an Attachment object.

f
createMessage

Creates a new email Message based on the provided constructor parameters. This function provides a more convenient API for creating messages compared to constructing a Message object directly.

T
ImmutableHeaders

Represents the headers of an email message. This type is a supertype of the standard Headers class, which is used to manage HTTP headers. Note that this type does not include methods for modifying the headers, such as append, delete, or set. It is intended to be used for read-only access to the headers of an email message.

I
Message

Represents an email message with various properties such as sender, recipients, subject, content, and attachments.

I
MessageConstructor

A constructor interface for creating a new email message using the createMessage function.

T
MessageContent

Represents the content of an email message, which can be either HTML or plain text. The html property is optional, and if it is provided, the text property may also be included for compatibility with email clients that do not support HTML.

f
comparePriority

Compares two priority levels and returns a number indicating their relative order.

T
Priority

The priority levels for email messages.

T
Receipt

The response from the email service after sending an email message.

I
Transport

A common interface for email sending services.

I
TransportOptions

Options for sending messages with the email service.

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.