Skip to content

Raynos/text-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Easy data binding

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published