
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
An UPYun Node.js SDK, using request and async.
Which Provides By Simple API Invoke:
npm install upyun-core
// require
var UPYUN = require('upyun-core');
var upyun = new UPYUN('bucket_name', 'user', 'pass');
// all the callbacks looks like
function(err[, data]){
if (err) {
// Do error handling
} else {
// Success
}
}
// callback: function(err){}
Write(Upload) buffer Content Up To The Given path.
According To The Official Documentation, The Directory Depth Levels Of path Should Not Large Than 10.
The path will be built automatically, like mkdir -p path.
upyun.writeFile(path, 'Node.js_Buffer_OR_String', cb);
// callback: function(err, contents){}
Fetch(Download) contents From The Given path.
upyun.fetchFile(path, function(err, contents){
if (err) {
// Do error handling
} else {
// contents will be String or Buffer
}
});
// callback: function(err){}
Remove(Delete) The Certain File From The Given path.
upyun.removeFile(path, cb);
// callback: function(err){}
Create The path.
According To The Official Documentation, The Directory Depth Levels Of path Should Not Large Than 10.
The path will be built automatically, like mkdir -p path.
upyun.createDirs(path, cb);
// callback: function(err){}
Remove(Delete) An EMPTY Directory By Given path.
upyun.removeDir(path, cb);
// callback: function(err){}
Recursively Remove The Given Path(Directory). Before Call This Method, Make Sure To Set "upyun.iDOReallyWantToDestroyDirectories" To true Every Time You Call This.
upyun.iDOReallyWantToDestroyDirectories = true;
upyun.destroyDir(path_you_really_want_to_destroy, cb);
entityvar entity = {
'path': '/storage/images/some_hash.jpg', // the full path of the file or directory
'name': 'some_hash.jpg', // the base name with the file extension name
'time': '1397211136', // the unix timestamp of file last modified
'size': '438112', // the file size in bytes
'type': 'file | folder' // UPYUN.TYPES.FILE | UPYUN.TYPES.FOLDER
};
// callback: function(err, entity){}
Inspect The Entity Of The Given path.
upyun.inspect(path, cb);
// callback: function(err, an_array_of_entities){}
List A Certain Directory By The Given path.
upyun.listDir(path, cb);
// callback: function(err, bytesUsed){}
Get The Total Bytes Used By This Bucket.
upyun.bucketUsage(cb);
// no callback
// callback: function(err, an_array_of_invalid_urls){}
To Purge The CDN Cache Of Online Resources.
upyun.purge([url1, url2, url3], cb);
There are 4 hosts of UPYUN HTTP REST API, choose one of them.
FAQs
Make Use of UPYUN API Much Easier.
We found that upyun-core 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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.