Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

SuchSoftware/node-letter-opener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

letter-opener

Turn .eml files into usable domain objects.

NPM version

Installation

$ npm install letter-opener

Quick 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 install

Then run the tests:

$ npm test

Contributors

Author: Ethan Garofolo

License

MIT

About

View emails sent via Nodemailer in your browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published