@racy/azure-middleware
TypeScript icon, indicating that this package has built-in type declarations

1.1.9 • Public • Published

@racy/azure-middleware

It is a middleware implementation for azure functions inspired on MiddyJs.

It works in the same way as MiddyJs but without plugins.

Installation

npm install @racy/azure-middleware --save

Example

import {AzureMiddleware} from '@racy/azure-middleware'

const middlware = new AzureMiddleware(handler); // where handler is you azure function;
middleware.use(yourMiddlewareBuilder()); // the middleware builder function should return a MiddlewareConfiguration object

export = middleware.listen(); // this should return the final handler your original handler should be wrapped
                             // in the middleware onion patter in the same way that middy works;

Package Sidebar

Install

npm i @racy/azure-middleware

Weekly Downloads

0

Version

1.1.9

License

MIT

Unpacked Size

12.5 kB

Total Files

9

Last publish

Collaborators

  • diegoazh