-1

1/ .createServer from module "http" 2/ .createServer from expressjs --> which is better ?

Thanks in advance.

  • perhaps this will help http://stackoverflow.com/questions/12616153/what-is-express-js – bhb Mar 10 '14 at 10:51

2 Answers2

1

Expressjs builds on top of http.createServer. I would recommend using expressjs as it's far easier.

Petar Vasilev
  • 3,871
  • 5
  • 37
  • 68
1

Expressjs wraps and extends http in Node.

However, based on the question, you should be aware that express.createServer() is loooong deprecated.

Express 3.x simply requires server = express()

Stephen Wright
  • 2,818
  • 3
  • 18
  • 28