text-node

A delta stream which writes to text nodes

text-node

A delta stream which writes to text nodes

var elem = document.getElementById("thing")
 
var delta = TextNode(elem)
 
delta.set("one", "goes in data-one span")
delta.set("two", "goes in data-two span")
<div id="thing">
    <span data-one></span>
    <span data-two></span>
</div>
var scutt = someScuttlebuttStream
    , elem = someElement
 
scutt.pipe(TextNode(elem).createStream())

npm install text-node

  • Raynos