DOM Nodes as streams
$ component install jwerle/node-stream
<div id="element">
</div>
var NodeStream = require('node-stream')
var node = document.getElementById('element');
var stream = NodeStream(node);
stream.on('data', function (chunk) {
console.log(chunk); // 'beep'
});
stream.write('beep');
console.log(node.innerHTML); // 'beep'
MIT