nodejs.org favicon

Path | Node.js v26.7.0 Documentation

5
公开标注数
5
参与人数
2026-07-27 09:46:30
首次 Whisper

本页的公开 Whisper

划选高亮2026-07-27 13:07:30
原文高亮摘录
then normalizes the resulting path.
Whisper 随想笔记
Wait, does it handle Windows backslashes too or just forward ones?
划选高亮2026-07-27 12:58:30
原文高亮摘录
then normalizes the resulting path.
Whisper 随想笔记
So basically it cleans up the slashes and dots for you, sweet.
划选高亮2026-07-27 10:04:30
原文高亮摘录
It can be accessed using:const path = require('node:path')
Whisper 随想笔记
my brain always autocorrects this to 'node:path', still confused after years
划选高亮2026-07-27 09:55:30
原文高亮摘录
It can be accessed using:const path = require('node:path')
Whisper 随想笔记
wait, why not just require('path')? is the node: prefix new?
划选高亮2026-07-27 09:46:30
原文高亮摘录
It can be accessed using:const path = require('node:path')
Whisper 随想笔记
finally no more dealing with those slash issues manually

分享本页 Whisper

分享到 X
短链接
https://domwhisper.com/s/186cd321602e
嵌入代码
<iframe src="https://domwhisper.com/embed/186cd321602e" width="100%" height="480" style="border:0;border-radius:16px" loading="lazy"></iframe>

看看大家在 nodejs.org 上讨论了什么

安装 DomWhisper,浏览网页时实时查看 whisper,也可以加入讨论。

获取插件