Sign in

Full Stack Software Engineer with years of professional experience with JavaScript ecosystem. On my free time, I maintain a few open-source libraries and tools.
Photo by Luca Bravo on Unsplash

Photo by Kevin Ku on Unsplash

Ever wondered how the middlewares in popular web frameworks, e.g. Express or Koa, work?

const middleare = (req, res, next) => {
// do stuffs
next()
}
const middleware = (ctx, next) => {
// do stuffs
next()
}
// Middleware usage in…

Munif Tanjim

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store