tao
Functional, aspect-oriented middleware for browser-side JavaScript and Node.js
Examples
Provides Middleware for Arbitrary Function Libraries
Tao is a framework for aspect-oriented programming that is meant to run anywhere: client or server, React or Express, wherever you need cross-cutting business logic. One mechanism Tao provides for aspect oriented programming is middleware, or functions that run every time you call a function in your Tao library.
return ;
Integrates with Express
Tao is meant to be a meta-framework that lets you write business logic
in a framework-agnostic way, and then use the wrap()
function to
glue your business logic to a particular framework. For example, you
can write business logic and then wrap()
your functions into
Express route handlers.
return ;