31
loading...
This website collects cookies to deliver better user experience
req
and res
objects with additional properties and methods and includes many other "framework" features, such as routing and templating, which Koa does not.http
modules, where as Express is an application framework for node.js.Feature | Koa | Express | Connect |
---|---|---|---|
Middleware Kernel | ✓ | ✓ | ✓ |
Routing | ✓ | ||
Templating | ✓ | ||
Sending Files | ✓ | ||
JSONP | ✓ |
(req, res, next)
, are incompatible with Koa. Your application will essentially have to be rewritten from the ground, up.No callback hell.
Better error handling through try/catch.
No need for domains.
Unlike both Connect and Express, Koa does not include any middleware.
Unlike Express, routing is not provided.
Unlike Express, many convenience utilities are not provided. For example, sending files.
Koa is more modular.
Less hackery.
Better user experience.
Proper stream handling.