<commit_before># node-lazyloader
A dynamic file loader for NodeJS, loads files (via require) if they are in a directory

## Install
```
npm install lazyloader
```

## How to Use
```js
var LazyLoader = require('lazyloader');

var lazy = new LazyLoader({
    debug: true, //gives you more verbose output
    filter: function(file) {
        //compare a file to block out
        if ('donotincludefile.js' === file) {
            return false;
        }
        return true;
    }
});

var allFiles = lazy.fetch('/path/to/node/files');
```<commit_msg>fixed a bug in readme<commit_after># node-lazyloader
A dynamic file loader for NodeJS, loads files (via require) if they are in a directory

## Install
```
npm install lazyloader
```

## How to Use
```js
var LazyLoader = require('node-lazyloader');

var lazy = new LazyLoader({
    debug: true, //gives you more verbose output
    filter: function(file) {
        //compare a file to block out
        if ('donotincludefile.js' === file) {
            return false;
        }
        return true;
    }
});

var allFiles = lazy.fetch('/path/to/node/files');
```
{'fraction_non_alphanumeric': 0.12714156898106402, 'fraction_numerical': 0.0, 'mean_word_length': 2.8275862068965516, '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': '4342684', 'n_tokens_mistral': 346, 'n_tokens_neox': 349, 'n_words': 120}