Skip to content

Instantly share code, notes, and snippets.

@dominictarr
Created November 7, 2012 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dominictarr/4028683 to your computer and use it in GitHub Desktop.
Save dominictarr/4028683 to your computer and use it in GitHub Desktop.
this script does nothing
var convoy = require('convoy-stream');
var split = require('event-stream').split
var through = require('through');
var header = convoy();
var h = header.createStream();
h.write('beep\n');
var _header = convoy()
var _h = _header.createStream()
_h.pipe(split()).pipe(through(function (line) {
console.dir(line);
}));
header.pipe(_header).pipe(header)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment