Socket
Socket
Sign inDemoInstall

smtp-supertest

Package Overview
Dependencies
27
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    smtp-supertest

Simple smtp mail testing package


Version published
Weekly downloads
0
Maintainers
1
Install size
3.47 MB
Created
Weekly downloads
 

Readme

Source

Smtp supertest

Smtp supertest lib for testing sent mail in your node apps.

Installation

$ npm install smtp-supertest

Usage

Simply create a new SmtpSupertest() and start listening:

var SmtpSupertest = require('smtp-supertest');

var smtpSupertest = new SmtpSupertest();

smtpSupertest.listen(8465);

When the smtp-supertest receives mail it will emit a 'email' event and with parsed email object:

smtpSupertest.on('email', function(mail) {
  // Assert your mail here
});

License

(The MIT License)

Keywords

FAQs

Last updated on 13 Nov 2012

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc