Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ehacke/instawrap
- Owner: ehacke
- License: mit
- Created: 2020-02-21T15:00:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T12:14:08.000Z (almost 2 years ago)
- Last Synced: 2024-04-25T05:22:09.719Z (7 months ago)
- Language: TypeScript
- Size: 3.19 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```