Skip to content

ephetic/middling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

middling

a tiny middleware chainer


Middling is a simple middleware handler in the style of functional composition (chaining really). Middleware is considered any function with this signature:

function (request, response[, next]) { /* ... */ }

  • If the last argument is a function, it treated as an asynchronous next signal. (Thus synchronous and asynchronous middleware functions can be mixed).
  • The function returned by middling itself has the signature above, so middling chains can be combined with middling.

// Example TBD

About

Simple recursive middleware chainer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published