New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

letter-opener-express

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

letter-opener-express - npm Package Compare versions

Comparing version 0.1.0 to 1.0.0

stylesheets/letterOpener.less

9

index.js

@@ -50,2 +50,8 @@ module.exports = letterOpenerExpress

// Gets just the HTML for a message so that we can load that in via an iframe and not have the main page's
// styling interfere with the emails
, messageHtml: function(req, res, next) {
res.send(req.message.payload.html)
}
, about: function(req, res) {

@@ -151,2 +157,5 @@ var context = _.clone(locals)

router.param('id', loadMessage)
router.route('/message/:id/html')
.get(findAllMessagesMiddleware, endpoints.messageHtml)
router.route('/message/:id')

@@ -153,0 +162,0 @@ .get(findAllMessagesMiddleware, endpoints.show)

2

package.json
{
"name": "letter-opener-express",
"version": "0.1.0",
"version": "1.0.0",
"description": "Bindings into letter-opener sufficient for an Express 4 application.",

@@ -5,0 +5,0 @@ "dependencies": {

# node-letter-opener-express
Bindings into letter-opener sufficient for an Express 4 application.
[![NPM version](https://badge.fury.io/js/letter-opener-express.svg)](http://badge.fury.io/js/letter-opener-express)
## Installation
```bash
$ npm install letter-opener-express
```
## Quick Start
```javascript
var letterOpener = require('letter-opener-express')
var letterOpenerConfig = {
app: app
, storageDir: 'tmp'
}
letterOpener(letterOpenerConfig)
```
## Contributors
Author: [Ethan Garofolo](http://learnallthenodes.com)
## License
[MIT](LICENSE)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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