Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tristan0x/email-stooge
Email templates assembly line: inlines styles, minifies code, generates text equivalent
https://github.com/tristan0x/email-stooge
Last synced: about 5 hours ago
JSON representation
Email templates assembly line: inlines styles, minifies code, generates text equivalent
- Host: GitHub
- URL: https://github.com/tristan0x/email-stooge
- Owner: tristan0x
- Created: 2015-08-07T12:05:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-09T01:14:16.000Z (over 9 years ago)
- Last Synced: 2023-03-11T06:16:26.391Z (over 1 year ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Email Stooge
Given some HTML templates, email-stooge will create a set of files optimized for emailing.
New files have their styles inlined, are minified, and get a fulltext version.
## Instructions
### For command-line use
```shell
npm install -g email-stooge
``````shell
email-stooge --help
```### For programmatic use
```shell
npm install -g email-stooge
``````javascript
var stooge = require('stooge');stooge({
sourceDir: '/path/to/templates',
distDir: '/path/to/build',
filesPattern: '*.html',
}).prepare();
```## Dependencies
The following tools are used to build the output:
* [juice](https://www.npmjs.com/package/juice)
* [html-minifier](https://www.npmjs.com/package/html-minifier)
* [html-to-text](https://www.npmjs.com/package/html-to-text)## Notes
Since this tool was made with a very opinionated purpose, it does not allow – yet – as many options as the dependencies can offer.