Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 588 Bytes

Readme.md

File metadata and controls

33 lines (24 loc) · 588 Bytes

pipe-graph

Generate graphs of your streams.

Example

var a = through()
var b = through()
var c = through()

a.pipe(b)
a.pipe(c)

var graph = PipeGraph()

// adding a single stream to the graph will populate the graph
// from the current stream and below.
graph.add(a)

graph.has(a)         // => true
graph.has(b)         // => true
graph.has(c)         // => true
graph.from(a).has(b) // => true
graph.from(a).has(c) // => true
graph.from(a).size   // => 2
graph.from(b).size   // => 0
graph.from(c).size   // => 0

License

MIT