
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
assetstream
Advanced tools
The goal is to make you able to build your own high performance asset pipeline from small atomic parts, ie. JavaScript bundling. The codebase is still very experimental, so expect big changes ahead.
Example:
var AssetStream = require('assetstream');
var contentSize = AssetStream.helper.contentSize;
// Teach system about Handlebars templates mimetype.
var mime = require('mime');
mime.define({
'text/x-handlebars-template': ['hbs']
});
// Create our own asset writable stream, that just outputs the event
// (either 'update' or 'delete'), the given path and the content size.
var debugOutput = AssetStream.Destination.create(function() {
return function(asset, next) {
console.log('%s %s (%s B)', asset.event, asset.path, contentSize(asset));
next();
};
});
// Setup our pipeline from building blocks. This is not as efficient as
// it could be. For higher performance use the transformCache helper.
AssetStream.source.directory({
directory: __dirname,
exclude: '**/*.bundle.js'
}).pipe(
AssetStream.transform.precompileHandlebars()
).pipe(
AssetStream.transform.minifyJavaScript()
).pipe(
AssetStream.transform.bundleJavaScript({ entryPath: '/my-app' })
).pipe(
AssetStream.transform.compressText()
).pipe(
debugOutput()
);
Look around the codebase, if you're curious.
Install: npm install assetstream
FAQs
Stream and transform your browser assets.
The npm package assetstream receives a total of 0 weekly downloads. As such, assetstream popularity was classified as not popular.
We found that assetstream 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 uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.