Security News
Combatting Alert Fatigue by Prioritizing Malicious Intent
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
readdir-cluster
Advanced tools
Use multiple CPU cores via clusters for the fastest way to read nested directories and their stats
Use multiple CPU cores via clusters for the fastest way to read nested directories and their stats
npm install --save readdir-cluster
require('readdir-cluster')
This package is published with the following editions:
readdir-cluster
aliases readdir-cluster/index.js
which uses Editions to automatically select the correct edition for the consumers environmentreaddir-cluster/source/index.js
is esnext source code with require for modulesreaddir-cluster/edition-node-0.12/index.js
is esnext compiled for node.js 0.12 with require for modulesconst readdir = require('readdir-cluster')
const paths = []
function iterator (fullPath, relativePath, statObject) {
if ( statObject.directory && relativePath[0] === '.' ) {
return false // do not delve deeper into hidden paths
}
paths.push(fullPath)
}
readdir(__dirname, iterator, function (err) {
if (err) throw err
console.log('completed successfully:', paths)
})
Discover the release history by heading on over to the HISTORY.md
file.
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
These amazing people are maintaining this project:
No sponsors yet! Will you be the first?
These amazing people have contributed code to this project:
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
Unless stated otherwise all works are:
and licensed under:
v1.3.0 2019 November 13
FAQs
Create a cluster of workers to iterate through the filesystem
The npm package readdir-cluster receives a total of 261 weekly downloads. As such, readdir-cluster popularity was classified as not popular.
We found that readdir-cluster demonstrated a healthy version release cadence and project activity because the last version was released less than 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
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.