6.0.0 • Published 3 months ago

readdir-cluster v6.0.0

Weekly downloads
1,719
License
Artistic-2.0
Repository
github
Last release
3 months ago

Use multiple CPU cores via clusters for the fastest way to read nested directories and their stats

npm

Usage

const 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:

6.0.0

3 months ago

5.3.0

4 months ago

5.1.0

4 months ago

4.0.0

5 months ago

5.2.0

4 months ago

5.0.0

4 months ago

3.18.0

5 months ago

3.17.0

3 years ago

3.15.0

3 years ago

3.16.0

3 years ago

3.14.0

3 years ago

3.13.0

4 years ago

3.12.0

4 years ago

3.11.0

4 years ago

3.10.0

4 years ago

3.9.0

4 years ago

3.8.0

4 years ago

3.7.0

4 years ago

3.6.0

4 years ago

3.4.0

4 years ago

3.5.0

4 years ago

3.3.0

4 years ago

3.2.0

4 years ago

3.1.0

4 years ago

3.0.0

4 years ago

2.3.0

4 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.3.0

4 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago