text-node

A delta stream which writes to text nodes

npm install text-node
13 downloads in the last month

text-node

A delta stream which writes to text nodes

Example

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>

Example with scuttlebutt

var scutt = someScuttlebuttStream
    , elem = someElement

scutt.pipe(TextNode(elem).createStream())

Installation

npm install text-node

Contributors

  • Raynos

MIT Licenced

npm loves you