<commit_before># middleware-decorator

Decorates functions with middleware super-powers.

[![Travis build status](http://img.shields.io/travis/thefabulousdev/middleware-decorator.svg?style=flat)](https://travis-ci.org/thefabulousdev/middleware-decorator)
[![Code Climate](https://codeclimate.com/github/thefabulousdev/middleware-decorator/badges/gpa.svg)](https://codeclimate.com/github/thefabulousdev/middleware-decorator)
[![Test Coverage](https://codeclimate.com/github/thefabulousdev/middleware-decorator/badges/coverage.svg)](https://codeclimate.com/github/thefabulousdev/middleware-decorator)
[![Dependency Status](https://david-dm.org/thefabulousdev/middleware-decorator.svg)](https://david-dm.org/thefabulousdev/middleware-decorator)
[![devDependency Status](https://david-dm.org/thefabulousdev/middleware-decorator/dev-status.svg)](https://david-dm.org/thefabulousdev/middleware-decorator#info=devDependencies)

* [Features](#features)
* [Installation](#installation)
  + [npm](#npm)
  + [bower](#bower)
* [Usage](#usage)
      * [Prerequisites](#prerequisites)
    - [Decorate with a synchronous middleware](#decorate-with-a-synchronous-middleware)
    - [Decorate with an asynchronous middleware](#decorate-with-an-asynchronous-middleware)
    - [Decorate with a promised middleware](#decorate-with-a-promised-middleware)
* [API](#api)
  + [Module](#module)
    - [(anyFunction) : SynchronousMiddlewareRunner](#anyfunction--synchronousmiddlewarerunner)
    - [promised(anyFunction) : PromisedMiddlewareRunner](#promisedanyfunction--promisedmiddlewarerunner)
    - [async(anyFunction) : AsynchronousMiddlewareRunner](#asyncanyfunction--asynchronousmiddlewarerunner)
  + [SynchronousMiddlewareRunner](#synchronousmiddlewarerunner)
    - [synchronousMiddlewareRunner.use(synchronousMiddleware: Function)](#synchronousmiddlewarerunnerusesynchronousmiddleware-function)<commit_msg>doc(README): add table of contents header<commit_after># middleware-decorator

Decorates functions with middleware super-powers.

[![Travis build status](http://img.shields.io/travis/thefabulousdev/middleware-decorator.svg?style=flat)](https://travis-ci.org/thefabulousdev/middleware-decorator)
[![Code Climate](https://codeclimate.com/github/thefabulousdev/middleware-decorator/badges/gpa.svg)](https://codeclimate.com/github/thefabulousdev/middleware-decorator)
[![Test Coverage](https://codeclimate.com/github/thefabulousdev/middleware-decorator/badges/coverage.svg)](https://codeclimate.com/github/thefabulousdev/middleware-decorator)
[![Dependency Status](https://david-dm.org/thefabulousdev/middleware-decorator.svg)](https://david-dm.org/thefabulousdev/middleware-decorator)
[![devDependency Status](https://david-dm.org/thefabulousdev/middleware-decorator/dev-status.svg)](https://david-dm.org/thefabulousdev/middleware-decorator#info=devDependencies)

## Table of contents

* [Features](#features)
* [Installation](#installation)
  + [npm](#npm)
  + [bower](#bower)
* [Usage](#usage)
      * [Prerequisites](#prerequisites)
    - [Decorate with a synchronous middleware](#decorate-with-a-synchronous-middleware)
    - [Decorate with an asynchronous middleware](#decorate-with-an-asynchronous-middleware)
    - [Decorate with a promised middleware](#decorate-with-a-promised-middleware)
* [API](#api)
  + [Module](#module)
    - [(anyFunction) : SynchronousMiddlewareRunner](#anyfunction--synchronousmiddlewarerunner)
    - [promised(anyFunction) : PromisedMiddlewareRunner](#promisedanyfunction--promisedmiddlewarerunner)
    - [async(anyFunction) : AsynchronousMiddlewareRunner](#asyncanyfunction--asynchronousmiddlewarerunner)
  + [SynchronousMiddlewareRunner](#synchronousmiddlewarerunner)
    - [synchronousMiddlewareRunner.use(synchronousMiddleware: Function)](#synchronousmiddlewarerunnerusesynchronousmiddleware-function)
{'fraction_non_alphanumeric': 0.14565899581589958, 'fraction_numerical': 0.0, 'mean_word_length': 7.297180043383948, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 18, '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': '2290565', 'n_tokens_mistral': 1266, 'n_tokens_neox': 1188, 'n_words': 107}