Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 434 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 434 Bytes

node-stream

DOM Nodes as streams

install

$ component install jwerle/node-stream

usage

<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'

license

MIT