<commit_before>**diveSync** is a tiny module for node that is able to recursively walk (_„dive“_) a directory tree. **diveSync** is the synchronous version of [dive](//github.com/pvorb/node-dive).

## Example

```javascript
var diveSync = require("diveSync");

diveSync(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.

```javascript
dive(dir, opt, action);
```

The default options are

```javascript
{
  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.<commit_msg>Fix README<commit_after>**diveSync** is a tiny module for node that is able to recursively walk (_„dive“_) a directory tree. **diveSync** is the synchronous version of [dive](//github.com/pvorb/node-dive).

## Example

```javascript
var diveSync = require("diveSync");

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

  console.log(file);
});
```

This will list all files in your current working directory. The function call blocks until all files are handled.

You may also apply options to the function call.

```javascript
dive(dir, opt, action);
```

The default options are

```javascript
{
  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.
{'fraction_non_alphanumeric': 0.126131221719457, 'fraction_numerical': 0.0, 'mean_word_length': 3.1623529411764704, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '699071', 'n_tokens_mistral': 545, 'n_tokens_neox': 522, 'n_words': 210}