
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
kcl-readable-stream
Advanced tools
This project convert a KCL object into a readable stream.
There are three (optional) options that can be used in the constructor:
kcl.initialize
: Will be called with data
and callback
when the KCL subprocess is initialized. The callback function must be called.kcl.shutdown
: Will be called with data
and callback
when the KCL subprocess is shut down because of an error or if the process is stopped. The callback function must be called.kcl.streamSingleRecords
: If true
, data
events will be emitted with single records; otherwise, an array of records will be used. Defaults to false
.// run this with something like:
// `kcl-bootstrap --java /usr/bin/java -e -p ./conf/kinesis.properties`
const kcl = require('aws-kcl');
const KclReadableStream = require('kcl-readable-stream');
const kclProcessor = new KclReadableStream({
kcl: {
initialize: (data, callback) => {
console.log('Initialized!');
callback();
},
shutdown: (data, callback) => {
console.log('Shutdown!');
callback();
},
streamSingleRecords: false
}
});
// if !streamSingleRecords
kclProcessor.on('data', (records) => {
console.log('This is an array of records: ', records);
});
// if streamSingleRecords === true
kclProcessor.on('data', (record) => {
console.log('This is a single record: ', record);
});
// you can also .pipe()
kclProcessor.pipe(process.stdout);
kcl(kclProcessor).run();
FAQs
Make a KCL object work as a readable stream
The npm package kcl-readable-stream receives a total of 1 weekly downloads. As such, kcl-readable-stream popularity was classified as not popular.
We found that kcl-readable-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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.