
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
blastengine
Advanced tools
blastengine is developer friendly email distribution service.
npm i blastengine
import { BlastEngine, Transaction, Bulk } from 'blastengine';
// or
const { BlastEngine, Transaction, Bulk } = require('blastengine');
new BlastEngine(config.userId, config.apiKey);
const mail = new Mail;
mail
.setFrom(config.from.email, config.from.name)
.setSubject('Test subject')
// Add to
.addTo('user1@example.com', {name: 'User1', code: 'code1'})
.addTo('user2@example.com', {name: 'User2', code: 'code2'})
// Add cc
.addCc('cc1@example.com')
.addCc('cc2@example.com')
// Add bcc
.addBcc('bcc1@example.com')
.addBcc('bcc2@example.com')
// Add attachment
.addAttachment('file.png')
.addAttachment('another.png')
// Set body
.setText('Content of email __name__, __code__')
.setHtml('<h1>Content of email<h1> <p>__name__, __code__</p>');
await mail.send();
await mail.send(new Date('2021-08-01 00:00:00'));
const transaction = new Transaction;
const res = await transaction
.setFrom(config.from.email, config.from.name)
.setSubject('Test subject')
.setTo(config.to)
.setText('Content of email')
.setHtml('<h1>Content of email')
.send();
console.log(res);
// { delivery_id: 22 }
const transaction = new Transaction;
const res = await transaction
.setFrom(config.from.email, config.from.name)
.setSubject('Test subject')
.setTo(config.to)
.addAttachment('file.png')
.addAttachment('another.png')
.setText('Content of email')
.setHtml('<h1>Content of email')
.send();
console.log(res);
// { delivery_id: 22 }
const bulk = new Bluk;
bulk
.setFrom(config.from.email, config.from.name)
.setSubject('Test subject')
.setText('メールの本文 __code1__');
const res = await bulk.register();
console.log(res);
// { delivery_id: 22 }
bulk.addTo('test1@example.jp', {key: '__code1__', value: 'value!'});
bulk.addTo('test2@example.jp', {key: '__code1__', value: 'value2!'});
const updateRes = await bulk.update();
console.log(updateRes);
// { delivery_id: 22 }
const job = await bulk.import(path.resolve('./path/to/csv.csv'));
while (job.finished()) {
await job.get();
await new Promise((resolve) => setTimeout(resolve, 1000));
}
const zipBlob = await job.download();
// or
await job.download(path.resolve('./tests/result.zip'));
const sendRes = await bulk.send();
console.log(sendRes);
// { delivery_id: 22 }
const deleteRes = await bulk.delete();
// { delivery_id: 22 }
const usages = await Usage.get(3);
const usage = usages[0];
usage.month // -> 202208
usage.current // -> 44
usage.remaining // -> 9956
usage.update_time // -> undefined
usage.plan_id // -> 'be-plan-10000
const usages = await Usage.get(3);
const usage = usages[0];
await usage.get();
const usage = await Usage.getLatest();
Change from Superagent to node-fetch.
MIT.
FAQs
blastengine is developer friendly email distribution service.
We found that blastengine 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.