You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can the Express example be updated to use a callback function with app.listen like on the Expressjs website? #6594
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.
Activity
UlisesGascon commentedon Jun 27, 2025
@b-gonzalez! Thanks for reporting feel free to do a PR 👍
efekrskl commentedon Dec 17, 2025
Resolved in #6718