File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 5
5
> Stability: 2 - Stable
6
6
7
7
A 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.
10
9
11
10
There are many stream objects provided by Node.js. For instance, a
12
11
[ request to an HTTP server] [ http-incoming-message ] and [ ` process.stdout ` ] [ ]
@@ -15,16 +14,14 @@ are both stream instances.
15
14
Streams can be readable, writable, or both. All streams are instances of
16
15
[ ` EventEmitter ` ] [ ] .
17
16
18
- The ` stream ` module can be accessed using :
17
+ To access the ` stream ` module:
19
18
20
19
``` js
21
20
const stream = require (' stream' );
22
21
```
23
22
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.
28
25
29
26
## Organization of this Document
30
27
You can’t perform that action at this time.
0 commit comments