Skip to content

jwerle/node-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

DOM Nodes as streams

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published