npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

pipe-graph

1.0.0

@timoxley

npmHomeRepoSnykSocket
Downloads:1
$ npm install pipe-graph
DailyWeeklyMonthlyYearly

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