Skip to content

Can the Express example be updated to use a callback function with app.listen like on the Expressjs website? #6594

Open
@b-gonzalez

Description

@b-gonzalez

On the Expressjs website, it uses a callback function with app.listen() like this:

app.listen(port, () => {
  console.log(`Example app listening on port ${port}`)
})

But on the npm package page for Express, the example is this:

app.listen(3000)

I was wondering if the example could be updated with the callback function so that the user knows that Express is running and listening. I can make a pull request for this change if necessary.

Thanks!

-Brian

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions