
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.
Walk an entire directory. Fast, simple, and asynchronous.
filepath.Walk
.Some comparisons between speedwalk and other Node.js libraries that provide tree-traversal solutions.
All tests were conducted on the same large directory. Each result is the average of each library's time to complete the walk with no custom functions provided.
Package | Result |
---|---|
speedwalk | 6.95ms |
walk | 13826.33ms |
@root/walk | 276.96ms |
walker | 296.05ms |
Import the walk
function from the package. To call it, pass in a root directory and a callback function accepting a path
and a dirent
.
import { walk } from 'speedwalk';
await walk('./', (path, dirent) => {
console.log('Path:', path);
console.log('Is a file:', dirent.isFile());
if (dirent.isDirectory() && dirent.name === 'node_modules') {
// Tell "walk" to skip the traversal of a certain
// directory by returning "true" from the callback.
return true;
}
});
The function will asynchronously walk through the root directory and all subsequent directories until the entire tree has been traversed.
FAQs
Walk an entire directory. Fast, simple, and asynchronous.
The npm package speedwalk receives a total of 4 weekly downloads. As such, speedwalk popularity was classified as not popular.
We found that speedwalk 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
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.