New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@unlock-protocol/email-templates

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unlock-protocol/email-templates

List of email templates

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
4
Weekly downloads
 
Created
Source

Email templates

This sub-repository contains the Unlock email templates

Add template

To add a new template add the new template key inside the index.ts file on Template type. Following to this you need to create a new file with the template and include it in EmailTemplates.

Let's say we need to add a new demo template, there is the following steps:

  1. Inside index.ts we add the new demo key
type Template =
  | 'keyMinde'
  | 'demo'
  1. Create the new template file with EmailTemplateProps definition

demo.ts

export default {
  subject: 'Demo template header',
  html: 'demo template content'
}
  1. Add this file on EmailTemplates inside index.ts
export const EmailTemplates: Record<Partial<Template>, EmailTemplateProps> = {
  // [...] other templates
  demo,
}

FAQs

Package last updated on 07 Feb 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc