File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 55> Stability: 2 - Stable
66
77A stream is an abstract interface for working with streaming data in Node.js.
8- The ` stream ` module provides a base API that makes it easy to build objects
9- that implement the stream interface.
8+ The ` stream ` module provides an API for implementing the stream interface.
109
1110There are many stream objects provided by Node.js. For instance, a
1211[ request to an HTTP server] [ http-incoming-message ] and [ ` process.stdout ` ] [ ]
@@ -15,16 +14,14 @@ are both stream instances.
1514Streams can be readable, writable, or both. All streams are instances of
1615[ ` EventEmitter ` ] [ ] .
1716
18- The ` stream ` module can be accessed using :
17+ To access the ` stream ` module:
1918
2019``` js
2120const stream = require (' stream' );
2221```
2322
24- While it is important to understand how streams work, the ` stream ` module itself
25- is most useful for developers that are creating new types of stream instances.
26- Developers who are primarily * consuming* stream objects will rarely need to use
27- the ` stream ` module directly.
23+ The ` stream ` module is useful for creating new types of stream instances. It is
24+ usually not necessary to use the ` stream ` module to consume streams.
2825
2926## Organization of this Document
3027
You can’t perform that action at this time.
0 commit comments