Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ehacke/instawrap

Instantiates all classes in the structure and wraps each function
https://github.com/ehacke/instawrap

Last synced: 20 days ago
JSON representation

Instantiates all classes in the structure and wraps each function

Awesome Lists containing this project

README

        

# instawrap

[![CircleCI](https://circleci.com/gh/ehacke/instawrap/tree/master.svg?style=svg)](https://circleci.com/gh/ehacke/instawrap/tree/master)

[![codecov](https://codecov.io/gh/ehacke/instawrap/branch/master/graph/badge.svg)](https://codecov.io/gh/ehacke/instawrap)

Instantiates all classes in the structure and wraps each function.

The reason I created this was so that I could walk the entire tree of express controller classes, instantiate each
of them, and then wrap each of their methods in a special response handler.

If you don't know why you'd want to do that, you probably don't need this.

Take a look at the test to get a good idea of it's purpose.

## Install
```bash
npm i -S instawrap
```