Skip to content

galileopy/most-mutation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

most-mutation

Event Stream from Mutation Observer

npm install most-mutation

import mutationStream from 'most-mutation'

const options = {
    attributes: true,
    childList: true,
    characterData: data,
    // this is passed directly to the mutation observer so you can add
    // all the options you can pass to observer.observe
  }

const changes = mutationStream(document.body, options)

// you get back a most stream
changes
  .tap(console.log)
  .drain()

About

Event Stream from Mutation Observer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published