
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A simple file and directory finder.
$ npm install commander
var ff = require("findfiles");
ff.findFiles("c:\\temp", [/.*\.png/,/.*\.jpg/], function(path, err, dirs, files) {
console.log("Directories found:");
console.log(dirs);
console.log("Files found:");
console.log(files);
}
findFiles(path, filter, onComplete)
- path
The path to traverse
- filter
null, To return all directories and files.
regexp[] Array or regexp criterias to filter the wanted files (this filters on full path)
- onComplete
function(path, error, directores, files)
- path
The path that was executed
- error
Contains information if error occurred
Null, on success
- directories
An array of all the directories found
- files
The files found
While the filter works on the full path of a file, it doesn't filter on the directories. Filter should be changed to one of these. - filter only on file name - have a directory filter and a file filter - remove directories that contains no valid file
Cannot enter a single regexp at this time, only array of regexp
FAQs
Simple file finder with regexp filters
The npm package findfiles receives a total of 10 weekly downloads. As such, findfiles popularity was classified as not popular.
We found that findfiles 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.