Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
email-stream
Advanced tools
This is a very early release of something that I would welcome any help with. I appreciate that I am unlikely to have covered all of the RFCs that cover the email specifications. Please submit pull requests, issues and anything else.
EmailStream is a module to allow you to build a raw email stream from multiple streams.
npm install email-stream
var emailStream = require('email-stream');
var email = emailStream({
to: 'test@example.com',
from: 'test@example.org',
subject: 'Test Subject',
text: textStream,
html: htmlStream
});
// Pipe the textStream
// Pipe the htmlStream
email.pipe(process.stdout);
A text stream is required for all emails and a HTML stream is optional
If you want to add attachments to the email, add attachments: true
to the initialisation function. Eg.
var email = emailStream({
to: 'test@example.com',
...
attachments: true
});
email.attach({
filename: 'attachment.svg',
type: 'text/svg',
body: attachmentStream
});
email.attach({
filename: 'attachment2.mp4',
type: 'video/mp4',
body: attachmentStream2
});
FAQs
Build a raw email with streams
The npm package email-stream receives a total of 8 weekly downloads. As such, email-stream popularity was classified as not popular.
We found that email-stream 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.