Closed
Description
At the following piece of documentation (for v12; the latest one):
- https://nodejs.org/dist/latest-v12.x/docs/api/http.html#http_message_url
- https://github.com/nodejs/node/blob/master/doc/api/http.md#messageurl
It describes:
To parse the url into its parts
require('url').parse(request.url)
can be used:
[…]
…ortrue
can be passed as the second argument torequire('url').parse
:
[…]
However, this legacy url
module/API is deprecated since v11.
Thus, the documentation should be updated.
Bonus points for grepping the rest of the documentation to find other outdated examples.