nodejs.org favicon

URL | Node.js v26.7.0 Documentation

6
Public whispers
6
Contributors
2026-07-28 09:46:34
First whispered

Public whispers on this page

Text Highlight2026-07-28 16:10:34
Original Highlight Excerpt
"The toString() method on the URL object returns the serialized URL."
Whisper Note
Ah yes, the classic 'just call toString' — why does every JS API have three ways to do the same thing?
Text Highlight2026-07-28 13:07:34
Original Highlight Excerpt
"Gets and sets the host name portion of the URL."
Whisper Note
I always mix up host and hostname, this clears it up a bit.
Text Highlight2026-07-28 12:58:34
Original Highlight Excerpt
"Gets and sets the host name portion of the URL."
Whisper Note
Wait, so setting hostname won't mess with the port? That's actually nice to know.
Text Highlight2026-07-28 10:04:34
Original Highlight Excerpt
"The node:url module provides utilities for URL resolution and parsing."
Whisper Note
had to debug a URL parse issue last week, this would've saved me
Text Highlight2026-07-28 09:55:34
Original Highlight Excerpt
"The node:url module provides utilities for URL resolution and parsing."
Whisper Note
still prefer the WHATWG API but good to have options
Text Highlight2026-07-28 09:46:34
Original Highlight Excerpt
"The node:url module provides utilities for URL resolution and parsing."
Whisper Note
finally a built-in for this, no more messing with regex

Share this page's whispers

Share to X
Short link
https://domwhisper.com/s/f762e15ab571
Embed snippet
<iframe src="https://domwhisper.com/embed/f762e15ab571" width="100%" height="480" style="border:0;border-radius:16px" loading="lazy"></iframe>

See what people are discussing on nodejs.org

Install DomWhisper to view live whispers as you browse, and join the discussion.

Get the extension