Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Express and Connect npm packages

I have been using express webservers since I started working on Node.js and a few days ago I came across this new (to me) web server, called connect.

Can anyone point out, what are the differences between the express and connect? When should we use connect and when to go for express?

As far as I know, both are web-servers based on HTTP module of Node.js.

Which one should go for?

Please be more descriptive and post some useful links to start with.

like image 694
Harshal Y. Avatar asked May 24 '18 08:05

Harshal Y.


1 Answers

In a nutshell, connect provides the use of middlewares in your application, everything connect can do, express can do it also, but express adds other useful things such as a view engine... see here and here to help you decide.

like image 95
Hamza Fatmi Avatar answered Sep 21 '22 01:09

Hamza Fatmi