Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

letter-opener

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

letter-opener

View emails that are stored in files (e.g. Nodemailer's pickup transport) right in your browser

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 29 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc