Newton's Programmatic Measurements

npm

Need private packages and team management tools?Check out npm Orgs. »

letter-opener

1.0.2 • Public • Published

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

install

npm i letter-opener

Downloadsweekly downloads

1

version

1.0.2

license

MIT

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability