
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
nodemailer-sequelize-queue
Advanced tools
Install nodemailer-sequelize-queue using npm:
npm i nodemailer-sequelize-queue
or use yarn
yarn add nodemailer-sequelize-queue
import NodemailerSequelizeQueue from 'nodemailer-sequelize-queue'
const dbCredentials = {
// See https://www.npmjs.com/package/sequelize for more options
config: {
username: process.env.db_username || '',
password: process.env.db_password || '',
database: process.env.db_database || '',
host: process.env.db_host || '',
dialect: 'mysql' as any,
},
// Alternatively you can use existing sequelize instance
// sequelize: SequelizeInstane
}
// See https://www.npmjs.com/package/nodemailer for more options
const smtpCreds = {
host: process.env.smtp_host,
port: process.env.smtp_port ? process.env.smtp_port : 465,
}
const queue = new NodemailerSequelizeQueue(
dbCredentials,
smtpCreds,
{
// See https://www.npmjs.com/package/nodemailer for more expression options
expression: '*/1 * * * *',
// If -1, will try infinite times
maxAttempts: 2,
}
)
queue.initScheduler()
queue.queueMail({
email_from: 'test@gmail.com',
email_to: 'test@gmail.com',
subject: 'test subject',
html: 'test message',
attachments: [
{
// Not required (see Nodemailer filename prop)
filename: 'file.jpg',
// Local or remote url (see Nodemailer path prop)
path: 'https://picsum.photos/id/237/200/300',
},
]
})
The MIT License (MIT). Please see License File for more information.
FAQs
Queue for mails with nodemailer and cron scheduler
The npm package nodemailer-sequelize-queue receives a total of 171 weekly downloads. As such, nodemailer-sequelize-queue popularity was classified as not popular.
We found that nodemailer-sequelize-queue 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 found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.