Skip to content

Commit 274765a

Browse files
doc: clarity fs/promises entry point
1 parent 3b7477c commit 274765a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/fs.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ forms, and are accessible using both CommonJS syntax and ES6 Modules (ESM).
3939
Promise-based operations return a promise that is fulfilled when the
4040
asynchronous operation is complete.
4141

42+
The "node:fs/promises" module is implemented as a separate entry point from "node:fs". While "fs.promises" is exposed as a property on the main "fs" module, importing "node:fs/promises" loads the promised-based APIs directly.
43+
4244
```mjs
4345
import { unlink } from 'node:fs/promises';
4446

0 commit comments

Comments
 (0)