
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
extends fs module, easy way to manipulate file system, support both sync functions and async functions
xfs is a module extends build-in fs module, let file manipulate easily
xfs extends the following functions :
// walk traverse through files in the dir one by one
// get only js files in dir
fs.walk(dir, /\.js$/, function (err, file, done) {
// your code here
// in the end , must call done()
done();
}, function (err) {
// your code
});
// function walk() can also accept an `function type` expr
fs.walk(dir, function (fpath) {
// return bool, true means accept, false means ignore
return true
}, function (err, file, done) {
}, function (err) {
});
// or you can save the done function
fs.walk(dir, /\.js$/, function (err, file){
// your code here
});
var sync = xfs.sync();
// shell > rm -r path
sync.rm(path);
// shell > mkdir -p path
sync.mkdir(path);
// save file auto create dir if not exist
// node >= v0.10.0
sync.save(path, data, option); // when node >= v0.10.0, the last param is option
sync.save(path, data, encoding); // when node < v0.10.0, the last param is encoding
... to be contine
MIT
FAQs
extends fs module, easy way to manipulate file system, support both sync functions and async functions
The npm package xfs receives a total of 6,061 weekly downloads. As such, xfs popularity was classified as popular.
We found that xfs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.