middleware-object-hooks
Middleware(ish) hooks based on "methods" in objects.
Usage
(Also see examples/)
var middleware = ; middlware; middlware; middlware; middlware;
Notes
-
Middleware methods are invoked within the context of their object
-
Multiple values may be passed to run (or none at all)
-
Each result is passed directly to the next middleware so its possible to both mutate the value (if its an object) and entirely replace it.