Lines Matching refs:Stream
5 **Test if an object is a `Stream`**
9 The missing `Stream.isStream(obj)`: determine if an object is standard Node.js `Stream`. Works for …
15 var Stream = require('stream')
17 isStream(new Stream()) // true
21 isStream(new Stream.Readable()) // true
22 isStream(new Stream.Writable()) // true
23 isStream(new Stream.Duplex()) // true
24 isStream(new Stream.Transform()) // true
25 isStream(new Stream.PassThrough()) // true
36 var Stream = require('stream')
38 isReadable(new Stream()) // false
39 isWritable(new Stream()) // false
40 isDuplex(new Stream()) // false
42 isReadable(new Stream.Readable()) // true
43 isReadable(new Stream.Writable()) // false
44 isReadable(new Stream.Duplex()) // true
45 isReadable(new Stream.Transform()) // true
46 isReadable(new Stream.PassThrough()) // true
48 isWritable(new Stream.Readable()) // false
49 isWritable(new Stream.Writable()) // true
50 isWritable(new Stream.Duplex()) // true
51 isWritable(new Stream.Transform()) // true
52 isWritable(new Stream.PassThrough()) // true
54 isDuplex(new Stream.Readable()) // false
55 isDuplex(new Stream.Writable()) // false
56 isDuplex(new Stream.Duplex()) // true
57 isDuplex(new Stream.Transform()) // true
58 isDuplex(new Stream.PassThrough()) // true