Skip to content

timoxley/pipe-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Generate graphs of your streams.

Resources

License

Stars

Watchers

Forks

Packages

No packages published