Socket
Socket
Sign inDemoInstall

nodemailer-handlebars

Package Overview
Dependencies
36
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "nodemailer-handlebars",
"version": "1.0.0",
"version": "1.0.1",
"description": "A plugin for nodemailer that uses express-handlebars view engine to generate emails",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -7,3 +7,3 @@ # Express Handlebars plugin for Nodemailer

```bash
npm install nodemailer-express-handlebars
npm install nodemailer-handlebars
```

@@ -13,3 +13,3 @@ # Usage

//reference the plugin
var hbs = require('nodemailer-express-handlebars');
var hbs = require('nodemailer-handlebars');
//attach the plugin to the nodemailer transporter

@@ -31,3 +31,3 @@ transporter.use('compile', hbs(options));

The plugin expects the following options:
* __viewEngine (required)__ either the express-handlebars view engine instance or [options for the view engine](https://github.com/ericf/express-handlebars#configuration-and-defaults)
* __viewEngine (required)__ either the express-handlebars view engine instance or [options for the view engine](https://github.com/accimeesterlin/nodemailer-express-handlebars#configuration-and-defaults)
* __viewPath (required)__ provides the path to the directory where your views are

@@ -39,5 +39,5 @@ * __extName__ the extension of the views to use (defaults to `.handlebars`)

* __template__ the name of the template file to use
* __context__ this will be passed to the view engine as the context as well as view engine options see [here](https://github.com/ericf/express-handlebars#renderviewviewpath-optionscallback-callback)
* __context__ this will be passed to the view engine as the context as well as view engine options see [here]([https://github.com/ericf/express-handlebars](https://github.com/accimeesterlin/nodemailer-express-handlebars)#renderviewviewpath-optionscallback-callback)
# License
MIT
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc