0.0.6 • Published 10 years ago

oplog-stream v0.0.6

Weekly downloads
3
License
ISC
Repository
github
Last release
10 years ago

oplog-stream

MongoDB oplog stream wrapper

Installation

  npm install oplog-stream

Usage

  var oplog = require('oplog-stream')
  
  oplog(function (err, stream) {
    if (err) {
      throw err
    }
    stream.on('data', function (data) {
      console.log(data)
    })
    stream.on('error', function () {
      throw err
    })
  })

Destroying stream

  stream.destroy() // also closes connection to db
0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago