@dealerslink/node-mail-template-helper

Simple tools to merge data with email templates during run-time

Stats

StarsIssuesVersionUpdatedCreatedSize
@dealerslink/node-mail-template-helper
1.1.03 years ago4 years agoMinified + gzip package size for @dealerslink/node-mail-template-helper in KB

Readme

node-mail-template-helper

node-mail-template-helper is a helper module to assist with compilation of email templates.

Installation

npm install @dealerslink/node-mail-template-helper

Usage

const MailTemplatesHelper = require('@dealerslink/node-mail-template-helper');

const templates = {
  ['Test2']: {
    subject: '{testData1} {testData2}',
    template: '{bodyData} - {testData2} -- {embedded.value}'
  }
};

const mailTemplateHelper = new MailTemplatesHelper(templates);

See wiki for more details.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.