
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
apply-transform
Advanced tools
Applies a transform to an input string and calls back with result, mostly useful for testing transforms

Applies a transform to an input string and calls back with result, mostly useful for testing transforms
var applyTransform = require('apply-transform')
, assert = require('assert')
, through = require('through2');
function toUpper() {
return through(
function (chunk, enc, cb) {
this.push(chunk.toUpperCase());
cb();
}
)
}
var tx = toUpper();
tx._writableState.decodeStrings = false;
applyTransform(tx, 'hello world', function (err, res) {
if (err) return assert.fail(err);
assert.equal(res, 'HELLO WORLD', 'calls back with transformed result')
})
npm install apply-transform
/**
* Applies the given transform to the input and calls back with result.
*
* @name
* @function
* @param {TransformStream} transform to apply to the @see input
* @param {String} input to transform
* @param {Function} cb function(err, output) { }
* - {Error} err: is set if an error occurred
* - {String} output: the result of applying the @see transform to the @see input
* @return {ReadableStream} that streams the input string char by char, useful for debugging failing transforms
*/
MIT
FAQs
Applies a transform to an input string and calls back with result, mostly useful for testing transforms
The npm package apply-transform receives a total of 12 weekly downloads. As such, apply-transform popularity was classified as not popular.
We found that apply-transform 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.