Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -1482,6 +1482,16 @@ Specify the `module` containing exported [asynchronous module customization hook

This feature requires `--allow-worker` if used with the [Permission Model][].

### `--experimental-logger`

<!-- YAML
added: REPLACEME
-->

> Stability: 1.1 - Active development

Enable the experimental [`node:logger`][] module.

### `--experimental-network-inspection`

<!-- YAML
Expand Down Expand Up @@ -4083,6 +4093,7 @@ one is included in the list below.
* `--experimental-import-text`
* `--experimental-json-modules`
* `--experimental-loader`
* `--experimental-logger`
* `--experimental-modules`
* `--experimental-package-map`
* `--experimental-print-required-tla`
Expand Down Expand Up @@ -4755,6 +4766,7 @@ node --stack-trace-limit=12 -p -e "Error.stackTraceLimit" # prints 12
[`import` specifier]: esm.md#import-specifiers
[`net.getDefaultAutoSelectFamilyAttemptTimeout()`]: net.md#netgetdefaultautoselectfamilyattempttimeout
[`node:ffi`]: ffi.md
[`node:logger`]: logger.md
[`node:sqlite`]: sqlite.md
[`node:stream/iter`]: stream_iter.md
[`node:vfs`]: vfs.md
Expand Down
7 changes: 4 additions & 3 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -8541,12 +8541,13 @@ Close the stream gracefully, flushing the internal buffer before closing.
* `callback` {Function}
* `err` {Error|null} An error if the flush failed, otherwise `null`.

Writes the current buffer to the file if a write was not in progress. Do
nothing if `minLength` is zero or if it is already writing.
Writes the current buffer to the file. The callback is invoked after pending
writes complete.

#### `utf8Stream.flushSync()`

Flushes the buffered data synchronously. This is a costly operation.
Flushes the buffered data synchronously. This is a costly operation. An
`ERR_INVALID_STATE` error is thrown if the stream is currently writing.

#### `utf8Stream.fsync`

Expand Down
1 change: 1 addition & 0 deletions doc/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* [Inspector](inspector.md)
* [Internationalization](intl.md)
* [Iterable Streams API](stream_iter.md)
* [Logger](logger.md)
* [Modules: CommonJS modules](modules.md)
* [Modules: ECMAScript modules](esm.md)
* [Modules: `node:module` API](module.md)
Expand Down
Loading