Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
dev-smtp
Advanced tools
Changelog
[0.2.0] - 2017-07-14
Readme
A development SMTP server with storing mails as files.
npm install --save-dev dev-smtp
Or globally:
npm install -g dev-smtp
dev-smtp [options] <path>
<path>
- Path to directory to store emails (should exist).
2525
).Run SMTP server on port 2525
and store emails in the ./mail
directory:
dev-smtp mail
Run SMTP server on port 25
and store emails in /tmp
:
dev-smtp --port 25 /tmp
Recieved emails are parsed and their content saved in directory:
year-month-date-hours-minutes-seconds-milliseconds-counter-subject
Where:
subject
header of email.Directory contains this files:
raw.eml
— is a raw email data.headers.txt
— is a parsed (decoded) headers of the email.message.txt
— is a plain text email body (if exists).message.html
— is an HTML email body (if exists).attachment_*
— is an attachments of the email.To use in JS/TS code:
import * as devSmtp from 'dev-smtp';
// Or:
// const devSmtp = require( 'dev-smtp' );
devSmtp( '/tmp', 2525 );
Interface of the function:
/**
* Run development SMTP server.
*
* @param mailRootDir Path to directory to store emails.
* @param port TCP port number.
*/
function main( mailRootDir: string, port: number = 25 ): SMTPServer;
Where SMTPServer
is a server object from smtp-server
package.
MIT.
FAQs
A development SMTP server with storing mails as files
The npm package dev-smtp receives a total of 10 weekly downloads. As such, dev-smtp popularity was classified as not popular.
We found that dev-smtp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.