Skip to content

dominictarr/level-update-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

level-update-stream

A pull stream that writes to a leveldb instance, but only when it's actually a change.

var pull = require('pull-stream')
var level = require('level')

var db = level(path...)

pull(
  source,
  update(db, function (err, updateCount) {
    //this callback is optional.
    console.log(updateCount, 'records written')
  })
)

If you want to use this with ordinary streams, use pull-stream-to-stream

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published