letter-opener
v1.0.2
Published
View emails that are stored in files (e.g. Nodemailer's pickup transport) right in your browser
Downloads
38
Maintainers
Readme
letter-opener
Turn .eml files into usable domain objects.
Installation
$ npm install letter-openerQuick Start
var letterOpener = require('letter-opener')
var core = new letterOpener('tmp')
// id is the filename of one of the messages
core.findMessage(id, function gotMessage(err, message) {
// check for errors and do something with your message
})
core.findAllMessages(function allMessages(err, messageFiles) {
// check for errors and do something with your messages
})
Running Tests
To run the test suite, first invoke the following command within the repo, installing the development dependencies:
$ npm installThen run the tests:
$ npm testContributors
Author: Ethan Garofolo
