Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify information about using highWaterMark option in fs.createWriteStream #49420

Closed
wszydlak opened this issue Aug 31, 2023 · 2 comments · Fixed by #49456
Closed

Clarify information about using highWaterMark option in fs.createWriteStream #49420

wszydlak opened this issue Aug 31, 2023 · 2 comments · Fixed by #49456
Labels
doc Issues and PRs related to the documentations. fs Issues and PRs related to the fs subsystem / file system. good first issue Issues that are suitable for first-time contributors.

Comments

@wszydlak
Copy link

Affected URL(s)

No response

Description of the problem

API docs for fs.createWriteStream don't mention option highWaterMark.
However according to source code and tests (https://github.com/nodejs/node/blob/main/test/parallel/test-file-write-stream2.js#L67) this option is valid and passed to stream.Writable, so developers can use them.

In @types/node package this option is not available (as types covers API docs) so i cannot use this option when writing code in typescript.

Please clarify if fs.createWriteStream can take highWaterMark and if so - it should be documented in API docs.

@wszydlak wszydlak added the doc Issues and PRs related to the documentations. label Aug 31, 2023
@atlowChemi atlowChemi added good first issue Issues that are suitable for first-time contributors. fs Issues and PRs related to the fs subsystem / file system. labels Sep 1, 2023
@ariel-weiss
Copy link
Contributor

I'd happy to take this issue

@sharma62
Copy link

sharma62 commented Sep 5, 2023

I am glad to resolve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. fs Issues and PRs related to the fs subsystem / file system. good first issue Issues that are suitable for first-time contributors.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants