Skip to content

Pentiado/email-guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Credits

Author

Copyright 2014, Paweł Wszoła

About

The Ultimate Guide for developing your emails

Resources

License

Stars

Watchers

Forks

Packages

No packages published