Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Recursively walk directory trees. Think /usr/bin/find
.
require('findit').find(__dirname, function (file) {
console.log(file);
})
var finder = require('findit').find(__dirname);
finder.on('directory', function (dir) {
console.log(dir + '/');
});
finder.on('file', function (file) {
console.log(file);
});
var files = require('findit').findSync(__dirname);
console.dir(files);
Do an asynchronous recursive walk starting at basedir
.
Optionally supply a callback that will get the same arguments as the path event
documented below in "events".
If basedir
is actually a non-directory regular file, findit emits a single
"file" event for it then emits "end".
Returns an EventEmitter. See "events".
Return an array of files and directories from a recursive walk starting at
basedir
.
Emitted for just files which are not directories.
Emitted for directories.
Emitted for both files and directories.
Emitted when the recursive walk is done.
FAQs
walk a directory tree recursively with events
The npm package findit receives a total of 83,945 weekly downloads. As such, findit popularity was classified as popular.
We found that findit 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
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.