-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Description
I just searched and searched and had to resort to various tricky Google queries to find that the path
property of stream(!) objects is not documented on the "stream" doc page - but on the "fs" page.
https://nodejs.org/dist/latest-v8.x/docs/api/fs.html#fs_writestream_path
I think this belongs to https://nodejs.org/dist/latest-v8.x/docs/api/stream.html#stream_class_stream_writable and https://nodejs.org/dist/latest-v8.x/docs/api/stream.html#stream_class_stream_readable (too)
On that note, I find it highly confusing that there is a class fs.WriteStream
(same for ReadStream) documented. Sure, it says "is a WriteStream", but combined with the fact that the documentation is DIFFERENT for the class on the two pages leads to the assumption that maybe it indeed is something different? I had to check the code in lib/fs.js
to make sure it really is the same class.
So maybe there should be only one location for stream class documentation - and that should be under "streams"?