<commit_before># require-path
Recursively `require(...)` files from a directory tree in Node.js

Works with Node.js `v0.12.0` and above.

## Usage

```js
var path = require('path');

requirePath({
    path: path.join(__dirname, 'my-directory'),
    include: ['**/*.js', '**/*.json'],
    exclude: ['**/*Spec.js']
  })
  // returns a standard promise
  .then(function (modules) {
    // `modules` is a map of filenames to require()'d components from those files
  })<commit_msg>adds travis status badges to README.md<commit_after># require-path
Recursively `require(...)` files from a directory tree in Node.js

Works with Node.js `v0.12.0` and above.

| Branch        | Status        |
| ------------- |:-------------:|
| Master        | [![Build Status](https://travis-ci.org/ecowden/require-path.png?branch=master)](https://travis-ci.org/ecowden/require-path) |
| All           | [![Build Status](https://travis-ci.org/ecowden/require-path.png)](https://travis-ci.org/ecowden/require-path) |


## Usage

```js
var path = require('path');

requirePath({
    path: path.join(__dirname, 'my-directory'),
    include: ['**/*.js', '**/*.json'],
    exclude: ['**/*Spec.js']
  })
  // returns a standard promise
  .then(function (modules) {
    // `modules` is a map of filenames to require()'d components from those files
  })
{'fraction_non_alphanumeric': 0.20483749055177627, 'fraction_numerical': 0.006046863189720333, 'mean_word_length': 3.061349693251534, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '7496923', 'n_tokens_mistral': 449, 'n_tokens_neox': 441, 'n_words': 111}