Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

A Node.js recursive directory walker that reads directories in parallel with an event interface.

License

Notifications You must be signed in to change notification settings

stephenengland/parallel-walker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parallel-walker

A Node.js recursive directory walker that reads directories in parallel with an event interface.

WARNING: Currently, this module can consume a lot of memory. It is not recommended to use this on very large directory structures without properly testing the memory consumption!

Getting Started

Install the module with: npm install parallel-walker

var pw = require('parallel-walker');

var walkerObject = pw.create();

walkerObject.on('file', function(file) {
	console.log(file);
});

walkerObject.on('directory', function(directory) {
	console.log(directory);
});

walkerObject.on('error', function(error) {
	console.log(error);
});

walkerObject.on('end', function(){
	console.log('finished');
});

walkerObject.walk(searchDir);

License

Copyright (c) 2013 Stephen England
Licensed under the MIT license.

About

A Node.js recursive directory walker that reads directories in parallel with an event interface.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published