Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
mime-message
Advanced tools
Simple node module to create mime types messages easily and safety!
Hi guys! I decided to create this module because I'm working with emails and I did not found any node module to easily create mime messages in the javascript ecosystem. I decided to release it because I'm sure more people has this problem! :).
const mimeMessage = require('./lib/MimeMessage')
const messageData = {
type: 'text/html',
encoding: 'UTF-8',
from: 'Jorge <mySuperEmail@example.com>',
to: [
'User 1 <mail@example.com>',
'User 2 <mail@example.com>'
],
cc: [
'User 3 <mail@example.com>'
],
bcc: [],
replyTo: [
'Jorge <mySuperEmail@example.com>',
],
date: new Date(),
subject: 'Hello World!',
body: '<h1>Hello from the other side!</h1><p>This is pretty awesome!</p>'
}
if (Mime.validMimeMessage(messageData)) {
const message = Mime.createMimeMessage(messageData)
const base64SafeString = message.toBase64SafeString()
console.log(base64SafeString)
}
No more documentation by now. Sorry guys, I'm quite busy right now ><.
FAQs
Simple node module to create mime type messages easily and safety!
We found that mime-message 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.