Socket
Book a DemoInstallSign in
Socket

@beskar-labs/comlink

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@beskar-labs/comlink

Beskar Labs internal mailing system.

1.0.1
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Beskar Labs internal mailing system.

Installation

yarn add @beskar-labs/comlink

Usage

import { comlink } from '@beskar-labs/comlink';
import type { ComlinkMetadataProps, ComlinkTemplateProps, ComlinkHeaderProps } from '@beskar-labs/comlink';

const metadata: ComlinkMetadataProps = {
  to: 'janesmith@acme.com',
  from: 'noreply@beskar.co',
  replyTo: 'noreply@beskar.co',
  subject: 'Sign in to Refraction',
};

const template: ComlinkTemplateProps = {
  title: 'Sign in to Refraction',
  body: 'You are receiving this email because you (or someone else) have requested the link to sign in to your account. Click the button below to sign in.',
  cta: {
    text: 'Sign in',
    href: url,
  },
  outro: 'If you did not request this, please ignore this email.',
  footer:
    'This email was sent to you because you have an account with Refraction, or you are creating one. If you did not request this, please ignore this email.',
  // Base64 encoded PNG
  logo: 'data:image/png;base64,...',
};

const headers: ComlinkHeaderProps = {
  passphrase: process.env.COMLINK_PASSPHRASE,
  resendToken: process.env.RESEND_TOKEN,
};

comlink(metadata, template, headers);

Keywords

comlink

FAQs

Package last updated on 30 Jul 2023

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.