<commit_before>[![NPM version][npm-image]][npm-url]
[![Build Status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]

# esrol-autoloader
An Autoloader Class for automatically including files.

## Installation

```sh
$ npm install --save esrol-autoloader
```

## Usage

```js
'use strict';
let Autoloader = require ('esrol-autoloader');
let settings = {
  getNamespaces: true, //boolean - get path as namespace
  getAsObject: true, // boolean - get file as object
  path: __dirname + '/app', // path to file
  filesToSkip: ['controllers.skipMe', 'routes.skipMe'] // array - which files 
};
let folders = new Autoloader(settings);
console.log(folders);
// { app:
//    { controllers: { foo: [Function: Foo] },
//      routes: { baz: [Object], foo: [Function: Foo] } },
//   namespaces: [ 'controllers.foo', 'routes.baz.bar', 'routes.foo' ] }
```

<a name="Autoloader"></a><commit_msg>missing node version in readme.md<commit_after>[![NPM version][npm-image]][npm-url]
[![Build Status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]

# esrol-autoloader
An Autoloader Class for automatically including files.

## Installation

```sh
$ npm install --save esrol-autoloader
```
## Node Version Compatibility

| Node Version |
| ---- |
| >= 4.x |

## Usage

```js
'use strict';
let Autoloader = require ('esrol-autoloader');
let settings = {
  getNamespaces: true, //boolean - get path as namespace
  getAsObject: true, // boolean - get file as object
  path: __dirname + '/app', // path to file
  filesToSkip: ['controllers.skipMe', 'routes.skipMe'] // array - which files 
};
let folders = new Autoloader(settings);
console.log(folders);
// { app:
//    { controllers: { foo: [Function: Foo] },
//      routes: { baz: [Object], foo: [Function: Foo] } },
//   namespaces: [ 'controllers.foo', 'routes.baz.bar', 'routes.foo' ] }
```

<a name="Autoloader"></a>
{'fraction_non_alphanumeric': 0.18410041841004185, 'fraction_numerical': 0.0005230125523012552, 'mean_word_length': 4.101333333333334, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '2291592', 'n_tokens_mistral': 683, 'n_tokens_neox': 664, 'n_words': 165}