fs: document readStream.start and readStream.end
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 90/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript, node.js
調査の方向性
fs.ReadStream と fs.createReadStream() の API ドキュメントを探してください。既存の readStream.start と readStream.end プロパティを、読み取り専用として、その数値/undefined および Infinity の値を含めて文書化してください。完了とは、実行時の動作を変更せずに、範囲プロパティが明確に説明されていることを意味します。
索引モデルが issue の本文から書いたものです。
説明
What is the problem this feature will solve?
When a library is given an fs.ReadStream, it can do much better by reading the file directly than by consuming the stream. For example, a tar lister can seek over file bodies instead of reading them. On a 100 MiB archive of 4 files, that is 11 ms instead of 91 ms. Doing this is only correct if the stream has not been read yet, and if it covers the whole file.
readStream.path, readStream.bytesRead and readStream.pending are documented. The range the stream was created with is not. It is available as the undocumented readStream.start and readStream.end properties (end is Infinity by default).
What is the feature you are proposing to solve the problem?
Document readStream.start and readStream.end as read-only properties: the byte range given to fs.createReadStream() (start is undefined or a number, and end is Infinity by default).
What alternatives have you considered?
- Asking the caller to pass a path instead of a stream: it is not always the caller's choice.
- Reading the undocumented properties, which works today but has no guarantee.
- 主要言語
- JavaScript
- スター
- 124k
- フォーク
- 38k
- 平均マージ
- 4日 2時間
- マージ済み PR(30日)
- 266
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nodejs/node のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
メンテナーはふだん 1 日以内に返信
-
doc: document the Buffer.prototype.*Slice() methods対応中かも @AyushCipher が今日担当しました。 オープンdoc
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
nodejs/node#67847 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
`styleText` fast path bypasses `options` and `options.validateStream` validation対応中かも @GBra-4-669 が 8 日前に担当しました。 オープンutil
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
riscv64
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nodejs/node#67655 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
meta: macos-14 used in v22.x no longer available since Nov 2, 2026対応中かも @npm-cli-bot が 11 日前に担当しました。 オープンmacos v22.x
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nodejs/node#67643 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
bug triage needed
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
resource-submission validation-passed
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
hesreallyhim/awesome-claude-code#3773 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
tabatkins/railroad-diagrams#129 ·
-
web: api() turns a null or object-valued error body into a TypeError or "[object Object]" and loses the status対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信