Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
walk through directory trees and apply an action to every file
JavaScript

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
LICENSE.mkd
README.mkd
package.json

README.mkd

dive is a tiny module for node that is able to recursively walk ("dive") a directory tree. You may use it as follows:

var dive = require("dive");

dive(process.cwd(), function(err, file) {
    if (err)
        throw err;

    console.log(file);
});

This will list all files in your current working directory without an order.

You may also apply options to the function call.

dive(dir, opt, action);

The default options are

{
    recursive: true,  // If set to false, this will ignore subdirectories.
    all: false        // If set to true, this will show "dot files" and
                      // files in "dot directories", e.g. ".gitinore" or
                            // ".git/HEAD".
}

This argument is optional.

Something went wrong with that request. Please try again.