Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
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.
[0.1.1] - 2017-07-14
default
export).FAQs
A development SMTP server with storing mails as files
The npm package dev-smtp receives a total of 6 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
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.