Path | Node.js v26.7.0 Documentation
5
Public whispers
5
Contributors
2026-07-27 09:46:30
First whispered
Public whispers on this page
Text Highlight2026-07-27 13:07:30
Original Highlight Excerpt
"then normalizes the resulting path."
Whisper Note
Wait, does it handle Windows backslashes too or just forward ones?
Text Highlight2026-07-27 12:58:30
Original Highlight Excerpt
"then normalizes the resulting path."
Whisper Note
So basically it cleans up the slashes and dots for you, sweet.
Text Highlight2026-07-27 10:04:30
Original Highlight Excerpt
"It can be accessed using:const path = require('node:path')"
Whisper Note
my brain always autocorrects this to 'node:path', still confused after years
Text Highlight2026-07-27 09:55:30
Original Highlight Excerpt
"It can be accessed using:const path = require('node:path')"
Whisper Note
wait, why not just require('path')? is the node: prefix new?
Text Highlight2026-07-27 09:46:30
Original Highlight Excerpt
"It can be accessed using:const path = require('node:path')"
Whisper Note
finally no more dealing with those slash issues manually
Share this page's whispers
Short link
https://domwhisper.com/s/186cd321602eEmbed snippet
<iframe src="https://domwhisper.com/embed/186cd321602e" 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