Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Easy data binding
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
example
.gitignore
LICENCE
Makefile
README.md
index.js
package.json

README.md

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

Something went wrong with that request. Please try again.