nodejs.org favicon

File system | Node.js v26.7.0 Documentation

5
公开标注数
5
参与人数
2026-07-25 09:19:00
首次 Whisper

本页的公开 Whisper

划选高亮2026-07-25 12:40:00
原文高亮摘录
The synchronous APIs block the Node.
Whisper 随想笔记
Blocking is fine if you're just scripting small stuff.
划选高亮2026-07-25 12:31:00
原文高亮摘录
The synchronous APIs block the Node.
Whisper 随想笔记
Yeah that's why async is safer for anything heavy.
划选高亮2026-07-25 09:37:00
原文高亮摘录
To use the promise-based APIs:import * as fs from 'node:fs/promises'
Whisper 随想笔记
I always forget the /promises part, thanks for the reminder.
划选高亮2026-07-25 09:28:00
原文高亮摘录
To use the promise-based APIs:import * as fs from 'node:fs/promises'
Whisper 随想笔记
Wait, is this the same as just importing 'fs' but with promises?
划选高亮2026-07-25 09:19:00
原文高亮摘录
To use the promise-based APIs:import * as fs from 'node:fs/promises'
Whisper 随想笔记
Finally, no more callback hell for fs operations.

分享本页 Whisper

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

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

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

获取插件