https://github.com/eskawl/intermediary
Universally applicable middleware
https://github.com/eskawl/intermediary
graphql javascript middleware middleware-composition
Last synced: 4 months ago
JSON representation
Universally applicable middleware
- Host: GitHub
- URL: https://github.com/eskawl/intermediary
- Owner: eskawl
- License: mit
- Created: 2019-06-25T15:34:26.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-17T11:47:42.000Z (over 2 years ago)
- Last Synced: 2025-09-27T19:44:47.487Z (9 months ago)
- Topics: graphql, javascript, middleware, middleware-composition
- Language: JavaScript
- Homepage: http://eskawl.github.io/intermediary
- Size: 277 KB
- Stars: 6
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Intermediary
Have hooks and middleware for just about any function.
[](https://www.npmjs.org/package/intermediary)
[](https://travis-ci.org/eskawl/intermediary)
[](https://bundlephobia.com/result?p=intermediary@1.0.0)
### Features
- Execute middleware before your function executes
- Execute afterware after your function executes
- Organize and compose repeated workflows
- Asynchronous middleware and afterware support
- Works in node as well as browser
### Installing
Using NPM:
```bash
npm i intermediary
```
Using yarn:
```bash
yarn add intermediary
```
UMD Build CDN:
```html
```
#### Importing
Common JS:
```js
const Intermediary = require('intermediary')
```
ES6:
```js
import Intermediary from 'intermediary';
```
Browser:
If using the CDN, Intermediary is available at `window.Intermediary`.
### Usage: see http://eskawl.github.io/intermediary