email-guide

1.0.2 • Public • Published

EmailGuide Codeship Status for Pentiado/email-guide Coverage Status

The Ultimate Guide for developing your emails. Pass your message to EmailGuide and it will parse it with Campaign Monitor's Guide to CSS support in email and return similar table but in JSON. Do you want visual tool? Check out my CatchMe app.

Usage

Install email-guide:

npm install email-guide --save

Require it and pass your email through

var emailGuide = require('email-guide');
var email = '<html><head></head><body><h1 style="color: red">My email</h1></body></html>'
emailGuide(email, function (err, result) {
});

Testing

Running npm test will run the unit tests with mocha.

Todo

  • LazyJS -> There is a lot of iterating over objects and arrays, lazy evaluation might bring great performance impact.
  • guide.xlsx -> Campaign monitor provide xlsx, extended version of guide. At the beginning of this project I was using but later I discovered some issues with parsing it, more email clients than are visible, not equal number of columns. Parsing by rows doesn't work. Right now there is just simple crawler that collects data from web page, but soon I will take different approach to getting info from xlsx.

Readme

Keywords

Package Sidebar

Install

npm i email-guide

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • pentiado