Combine a bunch of streams into one.
var crdt = require('crdt');var demux = require('demux'); var doc1 = new crdt.Doc;var doc2 = new crdt.Doc;var doc3 = new crdt.Doc; demux(doc1.createReadStream(), doc2.createReadStream()).pipe(doc3.createWriteStream()); // Now doc1 and doc2 replicate to doc3, basiclly a master, master, slave scenario
Create one stream that all the other streams go into.
Selectively mirror the npm registry inside your firewall. Filter packages based on security, licensing, code quality and more. Build awesome stuff faster. Try npm Enterprise for free…
how? learn more